Nonce class
A utility class with a single method to generate random alphanumeric strings.
Constructors
- Nonce([int length = 32])
-
Creates a Nonce containing a random alphanumeric
string
length
characters long.factory - Nonce.key()
-
Constructs a unique nonce
16
characters in length.factory - Nonce.secure([int length = 32])
-
Constructs a Nonce generated with a secure Random that's unique from
every other Nonce that's been generated by this global instance.
factory
- Nonce.unique([int length = 32])
-
Constructs a Nonce that's unique from every other Nonce
that's been generated by this global instance.
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
Returns
true
ifother
is a Nonce or a String with the samevalue
asthis
.override