FirebaseAdmin. Auth. Hash. Scrypt
Represents theScrypt password hashing algorithm.
Summary
This is themodified Scrypt algorithm used by FirebaseAuth. SeeStandardScrypt for the standardScrypt algorithm. Can be used as an instance ofUserImportHash when importing users.
Inheritance
Inherits from:FirebaseAdmin.Auth.Hash.RepeatableHashConstructors and Destructors | |
|---|---|
Scrypt()Initializes a new instance of theScrypt class. |
Properties | |
|---|---|
Key | byte[]Gets or sets the signer key for the hashing algorithm. |
MaxRounds | override intGets the maximum number of rounds for aScrypt hash, which is 8. |
MemoryCost | intGets or sets the memory cost for the hashing algorithm. |
MinRounds | override intGets the minimum number of rounds for aScrypt 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.
MemoryCost
int MemoryCost
Gets or sets the memory cost for the hashing algorithm.
SaltSeparator
byte[] SaltSeparator
Gets or sets the salt separator for the hashing algorithm.
Public functions
Scrypt
Scrypt()
Initializes a new instance of theScrypt 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. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-03-24 UTC.