The problem now is that I know n and e and want to generate a public key in pem format that can be used by OpenSSL.
I found a node.js library node-rsa, but this library requires e to be a js number, that is It says that it can be up to 53 digits, but my e has 160 digits. I don’t know if there is a problem with my e.
So I came here for help. I hope someone familiar with rsa can tell me how to generate a public key, or tell me the tool. If you can do it (regardless of language), thank you very much.
A is plaintext and B is ciphertext, then
B = A * 2 ^ e mod n
.