Stay organized with collections
Save and categorize content based on your preferences.
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-03-24 UTC.
[null,null,["Last updated 2022-03-24 UTC."],[],[],null,["FirebaseAdmin.Auth.Hash.Scrypt\n\nRepresents the [Scrypt](/docs/reference/admin/dotnet/class/firebase-admin/auth/hash/scrypt#class_firebase_admin_1_1_auth_1_1_hash_1_1_scrypt) password hashing algorithm.\n\nSummary\n\nThis is the [modified Scrypt algorithm](https://github.com/firebase/scrypt) used by Firebase [Auth](/docs/reference/admin/dotnet/namespace/firebase-admin/auth#namespace_firebase_admin_1_1_auth). See [StandardScrypt](/docs/reference/admin/dotnet/class/firebase-admin/auth/hash/standard-scrypt#class_firebase_admin_1_1_auth_1_1_hash_1_1_standard_scrypt) for the standard [Scrypt](/docs/reference/admin/dotnet/class/firebase-admin/auth/hash/scrypt#class_firebase_admin_1_1_auth_1_1_hash_1_1_scrypt) algorithm. Can be used as an instance of [UserImportHash](/docs/reference/admin/dotnet/class/firebase-admin/auth/user-import-hash#class_firebase_admin_1_1_auth_1_1_user_import_hash) when importing users.\n\nInheritanceInherits from: [FirebaseAdmin.Auth.Hash.RepeatableHash](/docs/reference/admin/dotnet/class/firebase-admin/auth/hash/repeatable-hash)\n\nProperties \n\nKey \n\n```text\nbyte[] Key\n``` \nGets or sets the signer key for the hashing algorithm. \n\nMaxRounds \n\n```text\noverride int MaxRounds\n``` \nGets the maximum number of rounds for a [Scrypt](/docs/reference/admin/dotnet/class/firebase-admin/auth/hash/scrypt#class_firebase_admin_1_1_auth_1_1_hash_1_1_scrypt) hash, which is 8. \n\nMemoryCost \n\n```text\nint MemoryCost\n``` \nGets or sets the memory cost for the hashing algorithm. \n\nMinRounds \n\n```text\noverride int MinRounds\n``` \nGets the minimum number of rounds for a [Scrypt](/docs/reference/admin/dotnet/class/firebase-admin/auth/hash/scrypt#class_firebase_admin_1_1_auth_1_1_hash_1_1_scrypt) hash, which is 0. \n\nSaltSeparator \n\n```text\nbyte[] SaltSeparator\n``` \nGets or sets the salt separator for the hashing algorithm.\n\nPublic functions \n\nScrypt \n\n```text\n Scrypt()\n``` \nInitializes a new instance of the [Scrypt](/docs/reference/admin/dotnet/class/firebase-admin/auth/hash/scrypt#class_firebase_admin_1_1_auth_1_1_hash_1_1_scrypt) class.\n\nDefines the name of the hash to be equal to SCRYPT.\n\nProtected functions \n\nGetHashConfiguration \n\n```text\nvirtual override IReadOnlyDictionary\u003c string, object \u003e GetHashConfiguration()\n``` \nReturns the options for the hashing algorithm.\n\n\u003cbr /\u003e"]]