Node RSA encryption, Java decryption and debugging
•
Java
The encryption and decryption with node RSA JS is normal, and the encryption and decryption with Java rsautils tool class is normal. However, Java playing with node encryption cannot be decrypted. Reason: node defaults to
DEFAULT_ ENCRYPTION_ SCHEME = 'pkcs1_ Oaep 'and pkcs1 is the default in Java.
Node RSA source code: https://github.com/rzcoder/node-rsa/blob/ea5c17d9351c857c0594d7921c596ff5636882f1/src/NodeRSA.js
Options
You can specify some options by second/third constructor argument,or over key. setOptions()method.
backstage:
reference resources: https://blog.csdn.net/mshootingstar/article/details/56496719
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码