AuthUtility class Null safety

Exposes static utility methods for password, salt and API credential generation.

Use the conduit auth tool to generate API credentials.

Constructors

AuthUtility()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Methods

generateAPICredentialPair(String? clientID, String? secret, {String? redirectURI, int hashLength = 32, int hashRounds = 1000, Hash? hashFunction}) AuthClient
A utility method to generate a ClientID and Client Secret Pair. [...]
generatePasswordHash(String password, String salt, {int hashRounds = 1000, int hashLength = 32, Hash? hashFunction}) String
A utility method to generate a password hash using the PBKDF2 scheme.
generateRandomSalt({int hashLength = 32}) String
A utility method to generate a random base64 salt.