Encrypter class
Wraps Algorithms in a unique Container.
Properties
Methods
-
decrypt(
Encrypted encrypted, {IV? iv, Uint8List? associatedData}) → String - Calls decrypt on the wrapped Algorithm.
-
decrypt16(
String encoded, {IV? iv, Uint8List? associatedData}) → String -
Sugar for
decrypt(Encrypted.fromBase16(encoded))
. -
decrypt64(
String encoded, {IV? iv, Uint8List? associatedData}) → String -
Sugar for
decrypt(Encrypted.fromBase64(encoded))
. -
decryptBytes(
Encrypted encrypted, {IV? iv, Uint8List? associatedData}) → List< int> - Calls decrypt on the wrapped Algorith without UTF-8 decoding.
-
encrypt(
String input, {IV? iv, Uint8List? associatedData}) → Encrypted - Calls encrypt on the wrapped Algorithm.
-
encryptBytes(
List< int> input, {IV? iv, Uint8List? associatedData}) → Encrypted - Calls encrypt on the wrapped Algorithm using a raw binary.
-
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