RNCryptor class
A high-level AES encryptor/decryptor engine compatible with RNCryptor
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
-
decrypt(
String password, String b64str, {bool checkHmac = true}) → String? - Encrypts the input text by using the specified password.
-
decryptWithKey(
Uint8List encryptionKey, Uint8List hmacKey, String b64str, {bool checkHmac = true}) → String? - Decrypts the input text by using a 32 byte length key and 16 byte length initialization vector.
-
encrypt(
String password, String plainText) → String - Encrypts plain text by using the specified password.
-
encryptWithKey(
Uint8List encryptionKey, Uint8List hmacKey, String plainText) → String - Encrypts the input text by using a 32 byte length key and 16 byte length initialization vector.
-
generateKey(
String password, Uint8List salt) → Uint8List - Generates a 32 byte length key by using the specified password and a password salt.
-
generateSalt(
) → Uint8List - Generates a random password salt with 8 bytes length.