rsa-jsencrypt
v1.0.0
Published
RSA加密
Downloads
235
Readme
#rsa-js
const encrypt = new JSEncrypt(pubKey);
encrypt.setPublicKey(pubKey);
const encrypted = encrypt.encrypt(val);
const encrypt = new JSEncrypt();
encrypt.setPrivateKey(privateKey);
const decrypted = encrypt.decrypt(encrypted);