JsonAesCbcEncryptor constructor
JsonAesCbcEncryptor({
- required String stringKey,
Implementation
JsonAesCbcEncryptor({required this.stringKey}) {
key = Uint8List.fromList(utf8.encode(stringKey));
if (![16, 24, 32].contains(key.length)) {
throw ArgumentError(
'el length del key debe ser: 128, 192, or 256 bits. IV length: 128 bits');
}
}