decryptBytesWithRsa static method
Decrypts the given data using the specified private key
.
Implementation
static Uint8List decryptBytesWithRsa(Uint8List data, RSAPrivateKey key) {
final rsaChiper = PKCS1Encoding(RSAEngine());
rsaChiper.init(false, PrivateKeyParameter<RSAPrivateKey>(key));
return rsaChiper.process(data);
}