decrypt method
Decrypts the given Base64 encoded input
string using the specified
initialization vector (iv).
If decryption fails, the original input
string is returned.
Throws:
- Any exception that occurs during decryption.
Example:
String decrypted = decrypt(encryptedString);
Implementation
String decrypt(String input) {
try {
return encrypter.decrypt64(input, iv: iv);
} catch (e) {
return input;
}
}