Closed vezaynk closed 8 years ago
@viruzx this works for me:
var ursa = require('ursa'),
key = ursa.generatePrivateKey(),
msg = key.encrypt('a', 'utf8', 'base64');
console.log(key.decrypt(msg, 'base64', 'utf8'));
Could you paste your code?
Hello. I don't remember the full context of my bug since it was so long ago, but I do remember that I was doing it completely wrong.
I was trying to keep manage large data with rsa instead of aes.
Closing.
Using my public key, I generated the letter "a" to be:
However when I try to decrypt it with
I get this: