1.0.0 • Published 6 years ago
rsa-jsencrypt v1.0.0
#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);
1.0.0
6 years ago