Cipher2 class

The class provide encryption and decrytion method

Constructors

Cipher2()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

decryptAesCbc128Padding7(String encryptedText, String key, String iv) Future<String>
Decrypt data by AES algorithm with CCB Padding 7 mode, and return a plain text [...]
decryptAesGcm128(String encryptedText, String key, String nonce) Future<String>
Decrypt data by AES algorithm with GCM mode, and return a plain text [...]
encryptAesCbc128Padding7(String plainText, String key, String iv) Future<String>
Encrypt data by AES algorithm with CCB Padding 7 mode, and return a base64 encoded encrypted string [...]
encryptAesGcm128(String plainText, String key, String nonce) Future<String>
Encrypt data by AES algorithm with GCM mode, and return a base64 encoded encrypted string [...]
generateNonce() Future<String>
Return a base64 encoded nonce string. The length of nonce string is
92bits(12 bytes) before base64 encoding