There was an error while loading. Please reload this page.
1 parent be89c35 commit 5bef205Copy full SHA for 5bef205
lib/src/common/crypto.dart
@@ -19,6 +19,7 @@ class Cryptom {
19
String encrypt(String plaintext, String publicKey) {
20
/// After a lot of research on how to convert the public key [String] to [RSA PUBLIC KEY]
21
/// We would have to use PEM Cert Type and the convert it from a PEM to an RSA PUBLIC KEY through basic_utils
22
+ ///
23
var pem =
24
'-----BEGIN RSA PUBLIC KEY-----\n$publickey\n-----END RSA PUBLIC KEY-----';
25
var public = CryptoUtils.rsaPublicKeyFromPem(pem);
0 commit comments