flutter-rsa icon indicating copy to clipboard operation
flutter-rsa copied to clipboard

[Feature Request]: Add option to encrypt using private key

Open msarkrish opened this issue 1 year ago • 2 comments

Thanks for this Plugin. Need option to encrypt using private key.

msarkrish avatar Jul 05 '24 10:07 msarkrish

Hi @msarkrish if you have a privatekey and want to use encrypt, you could convert the privatekey to a publicKey using the following method

publicKey = RSA.convertPrivateKeyToPublicKey(privateKey)

hope this helps

jerson avatar Jul 05 '24 14:07 jerson

@jerson I already have public key also. As per my requirement i need to encrypt the data using private key with the format PKCS1. Is it possible to add this option?

msarkrish avatar Jul 08 '24 10:07 msarkrish