CryptoBaseEngine class

Constructors

CryptoBaseEngine({BaseRandom? random, required BaseLogger logger, String? passPhrase, bool usePseudoRandomSalt = false})

Properties

firstState List<int>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
logger BaseLogger
final
random BaseRandom
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trueRandom KissRandom
getter/setter pair

Methods

decrypt(String encryptedText, {int saltLength = 4, CharClass charClass = CharClass.chars95, String? charSetMembers}) String
Decrypts the encryptedText encrypted by encrypt(). saltLength: this is the length of the salt preceding the encryptedText.
encrypt(String clearText, {int saltLength = 4, CharClass charClass = CharClass.chars95, String charSetMembers = ''}) String
Encrypts the clearText with a randomly generated salt of the length saltLength. see decrypt() for reverse encryption.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Sets the random generator to a well known state.
toString() String
A string representation of this object.
inherited

Operators

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