CryptoBaseEngine class Null safety

Constructors

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

Properties

firstState List<int>
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
logger BaseLogger
final
random BaseRandom
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
trueRandom KissRandom
read / write

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 non-existent 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