1, enter jsencrypt/lib/lib/jsbn/rsa.js first.
2. Then, in the rsa.js file, in the RSAKey.prototype.decrypt method near line 207, change this. do private(c) to this. do public(c).
3. Also in the rsa.js file, find the pkcs 1unpad2 method near line 3 10, and note these three lines of code.
4. Finally, save the modified rsa.js file to realize the function of jsencrypt to decrypt data with public key.