Crypto class

Constructors

Crypto({required String key, String iv = "AAAAAAAAAAAAAAAAAAAAAA=="})
const
Crypto.defaultCrypto()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
iv String
final
key String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decrypt({required String data_base64, String? newKey, String? iv}) String
decryptBytes({required List<int> data, String? key, String? iv}) List<int>
decryptFromBase64({required String text, String? key, String? iv}) String
decryptsBytes({required List<int> data, required List<String> keys}) List<int>
encrypt({required String data, String? newKey, String? iv}) String
encryptBytes({required List<int> data, String? key, String? iv}) Uint8List
encryptListToBase64({required List data}) String
encryptMapToBase64({required Map data}) String
encryptsBytes({required List<int> data, required List<String> keys}) Uint8List
encryptToBase64({required String text, String? key, String? iv}) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

empty() Crypto
generateKey({String scheme = "0123456789abcdefghijklmnopqrstuvwxyz"}) String