encrypt method

String encrypt(
  1. String plainText
)

Implementation

String encrypt(String plainText) {
  assert(_isInitialized, 'DataStoreEncrypter must be initialized before use');

  final iv = IV.fromSecureRandom(16);
  return iv.base64 + _encrypter.encrypt(plainText, iv: iv).base64;
}