encryptValue static method

String encryptValue(
  1. String value,
  2. String encryptionKey, {
  3. String? ivBase64,
})

Implementation

static String encryptValue(String value, String encryptionKey,
    {String? ivBase64}) {
  var aesEncrypter = Encrypter(AES(Key.fromBase64(encryptionKey)));
  var encryptedValue = aesEncrypter.encrypt(value, iv: getIV(ivBase64));
  return encryptedValue.base64;
}