CryptKey class

Class for creating cryptographically secure strings.

Constructors

CryptKey()

Properties

dart Random?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
rand ↔ SecureRandom?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

genDart({int len = 16}) String
Generate cryptographically-secure random string using Dart math.random. The string is encoded using base64. Thus, this is for use with encoded classes.
genDartRaw({int len = 16}) Uint8List
Generate cryptographically-secure random string using Dart math.random. The string is not encoded and returned as a Uint8List. Thus, this is for use with raw classes.
genFortuna({int len = 32}) String
Generate cryptographically-secure random string using Fortuna algorithm. The string is encoded using base64. Thus, this is for use with encoded classes.
genFortunaRaw({int len = 32}) Uint8List
Generate cryptographically-secure random string using the Fortuna algorithm. The string is not encoded and returned as a Uint8List. Thus, this is for use with raw classes.
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