You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an encrypted base64 string stored in my db. Now I am trying to decrypt it.
ERROR MESSAGE (in the highlighted line below):
The argument type 'String' cant be assigned to the parameter type 'Encrypted'.
Future pwDecrypt(String password) async {
final key = encrypt.Key.fromSecureRandom(32);
final iv = encrypt.IV.fromSecureRandom(16);
final encrypter = encrypt.Encrypter(encrypt.AES(key));
final decrypted = encrypter.decrypt(password, iv: iv);
FFAppState().tempPassword = decrypted;
}
The text was updated successfully, but these errors were encountered:
I have an encrypted base64 string stored in my db. Now I am trying to decrypt it.
ERROR MESSAGE (in the highlighted line below):
The argument type 'String' cant be assigned to the parameter type 'Encrypted'.
Future pwDecrypt(String password) async {
final key = encrypt.Key.fromSecureRandom(32);
final iv = encrypt.IV.fromSecureRandom(16);
final encrypter = encrypt.Encrypter(encrypt.AES(key));
final decrypted = encrypter.decrypt(password, iv: iv);
FFAppState().tempPassword = decrypted;
}
The text was updated successfully, but these errors were encountered: