Open wilburx9 opened 6 years ago
If you use the latest version of Flutter that uses Dart v2, Pointy Castle won't work until #122 is resolved.
Regarding the algorithms, you would create the key generator using
KeyGenerator generator = new KeyGenerator("RSA");
and the cipher using
Cipher cipher = new Cipher("RSA/ECB/PKCS1");
However, Pointy Castle only has support for PKCS7 padding for now.
Thanks. Please, how do Cipher
? Please, I mean the package for the Cipher
class.
So I have this Android library that I am trying to port to Flutter but I got stuck on the encryption part. The way it works on Android is that a base64 encoded string is used to generate a public key. Then using the generated public key and an RSA cipher, a string is encoded.
I don't understand the pointycastle APIs well enough to port the above session to Flutter. Please, I need guidance on how to do it.