encryptPlainTextWithRandomIV method
Encrypt the string using the password. The password can by any length
e.g. CryptLib.instance.encryptPlainTextWithRandomIV(plainText, "Password")
Implementation
String encryptPlainTextWithRandomIV(String plainText, String password) {
final encrypted = _encryptDecrypt(_generateRandomIV16() + plainText,
_sha256key(password, 32), _EncryptMode.encrypt, _generateRandomIV16());
return encrypted;
}