encrypt library
Functions
-
decryptWithPassword(
Uint8List data, String password, String salt) → Future -
Decrypts the
datausing the providedpasswordandsalt. -
deriveKey(
String password, String salt, {int length = 32, int iterations = 100000}) → Uint8List -
Derives an AES key from a
passwordandsaltusing the PBKDF2 algorithm. -
encryptWithPassword(
dynamic plainText, String password, String salt) → Future< Uint8List> -
Encrypts the
plainTextwith the givenpasswordandsaltusing AES-CBC.