decryptString function

String decryptString(
  1. String source,
  2. String masterPassword
)

Implementation

String decryptString(String source, String masterPassword) {
  final key = buildKey(masterPassword);
  final iv = buildIV(masterPassword);

  final encrypter = encrypt.Encrypter(encrypt.AES(key));
  final decrypted = encrypter.decrypt64(source, iv: iv);

  return decrypted;
}