jsencrypt icon indicating copy to clipboard operation
jsencrypt copied to clipboard

var Base64导致的encrypt返回false.

Open bxcrs opened this issue 6 years ago • 3 comments

` Base64 = new base64(); encrypt = new JSEncrypt(); encrypt.setPublicKey(pk);
encrypt.encrypt(“hello1234”); //return false


` Base64 = new base64(); encrypt = new JSEncrypt(); encrypt.setPublicKey(pk);
encrypt.encrypt(“hello1234”); // encrypt ok!

bxcrs avatar May 28 '19 10:05 bxcrs

i solved by putting the public key in JSEncrypt instantiation instead

encrypt = new JSEncrypt(publickey);

razelsoco avatar Jul 29 '19 14:07 razelsoco

问题解决了👍

codingpp avatar Jun 11 '21 07:06 codingpp

i solved by putting the public key in JSEncrypt instantiation instead

encrypt = new JSEncrypt(publickey);

This method works, nice !

Ray0401 avatar Aug 20 '21 01:08 Ray0401