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.