encrypt method
Encrypts the given input string using the specified encrypter and IV (initialization vector).
The encrypted result is returned as a base64 encoded string.
- Parameter input: The string to be encrypted.
- Returns: A base64 encoded string representing the encrypted input.
Implementation
String encrypt(String input) => encrypter.encrypt(input, iv: iv).base64;