encrypt method

Future<String> encrypt(
  1. String plainText
)

Implementation

Future<String> encrypt(String plainText) async {
  await init();

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