FirebaseAdmin.Auth.Hash.Scrypt

Represents the Scrypt password hashing algorithm.

Summary

This is the modified Scrypt algorithm used by Firebase Auth. See StandardScrypt for the standard Scrypt algorithm. Can be used as an instance of UserImportHash when importing users.

Inheritance

Inherits from: FirebaseAdmin.Auth.Hash.RepeatableHash

Constructors and Destructors

Scrypt()
Initializes a new instance of the Scrypt class.

Properties

Key
byte[]
Gets or sets the signer key for the hashing algorithm.
MaxRounds
override int
Gets the maximum number of rounds for a Scrypt hash, which is 8.
MemoryCost
int
Gets or sets the memory cost for the hashing algorithm.
MinRounds
override int
Gets the minimum number of rounds for a Scrypt hash, which is 0.
SaltSeparator
byte[]
Gets or sets the salt separator for the hashing algorithm.

Protected functions

GetHashConfiguration()
virtual override IReadOnlyDictionary< string, object >
Returns the options for the hashing algorithm.

Properties

Key

byte[] Key

Gets or sets the signer key for the hashing algorithm.

MaxRounds

override int MaxRounds

Gets the maximum number of rounds for a Scrypt hash, which is 8.

MemoryCost

int MemoryCost

Gets or sets the memory cost for the hashing algorithm.

MinRounds

override int MinRounds

Gets the minimum number of rounds for a Scrypt hash, which is 0.

SaltSeparator

byte[] SaltSeparator

Gets or sets the salt separator for the hashing algorithm.

Public functions

Scrypt

 Scrypt()

Initializes a new instance of the Scrypt class.

Defines the name of the hash to be equal to SCRYPT.

Protected functions

GetHashConfiguration

virtual override IReadOnlyDictionary< string, object > GetHashConfiguration()

Returns the options for the hashing algorithm.

Details
Returns
Dictionary defining options such as signer key.