Reputation: 27
I am looking for a package in nodejs which can help in the encryption of data using the public key which has been generated using bouncy castle in java and the encrypted data will be decrypted in bouncy castle again. I already tried openpgp package of node, I am able to encrypt but it seems that there is some issue in decrypting the data in bouncy castle.
I won't be able to provide any code for example, so apologies for that and thanks in advance.
Upvotes: -3
Views: 1088
Reputation: 1
You can use openpgp and set the options compression is openpgp.enums.compression.zip. It will be compatible with bouncy castle. I recommended to use v4.10.11. I tried with lastest version, but it didn't work as expect with compression options.
Upvotes: 0
Reputation: 185
Have you looked at openpgpjs?
Apologies if you mean that by "openpgp package of node".
Upvotes: 0