import JSEncrypt from '../jsencrypt/jsencryptInit' export function encrypt(publicKey, message) { const encrypt = new JSEncrypt() encrypt.setPublicKey(publicKey) // publicKey为公钥 return encrypt.encrypt(message) }