Closed Denis-Evseev closed 5 years ago
You can try to specify the RSAEncryptionPadding
, the default value is RSAEncryptionPadding.OaepSHA512
.
var encrypted = EncryptProvider.RSAEncrypt(key, srcString, RSAEncryptionPadding.Pkcs1);
Can I use nopadding - Is it safe?
Do you if it is possible to decrypt/encrypt data using PEM private/public keys?
Do you know why
var encrypted = EncryptProvider.RSAEncrypt(publicKey, "123");
Retrieves: {"Exception of type 'NETCore.Encrypt.OutofMaxlengthException' was thrown."}
publicKey:
`