CryptoSimpleSingleton class
Constructors
- CryptoSimpleSingleton.new({int? superKey, int? subKey, String? secretKey, SecurityMode? securityMode = SecurityMode.XOR, EncryptionMode? encryptionMode = EncryptionMode.Normal})
-
CryptoSimple factory constructor :
A factory constructor that creates and returns a new instance of the CryptoSimple class.
It takes several optional parameters, such as
superKey
,subKey
,secretKey
, andencryptionMode
, and performs input validation before setting the values of the corresponding instance variables.factory
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
-
decryption(
{required String encryptedString}) → String -
encryption(
{required String inputString}) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetObject(
) → void -
The resetObject method resets the
_lock
instance variable to false. It is used internally within the class to reset the lock after unit tests are run. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → CryptoSimpleSingleton
-
instance getter method :
A getter method that returns the singleton instance of the CryptoSimple class.
no setter