Search
Preparing search index...
The search index is not available
@thermopylae/lib.authentication
Thermopylae
Github
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
managers/password/hash/argon2
Argon2PasswordHashingAlgorithm
Modules
{"Authentication Engine":"engine","Error":"error","Authentication":{"Step":"authentication_step","Challenge Response":"authentication_steps_challenge_response_step","Recaptcha":"authentication_steps_recaptcha_step","Two Factor":{"Interface":"authentication_2fa_interface","Email":"authentication_2fa_email","Sms":"authentication_2fa_sms","Totp":"authentication_2fa_totp"}},"Password":{"Hashing":{"Options":"managers_password","Interface":"managers_password_hash","Argon2":"managers_password_hash_argon2"},"Strength":{"Interface":"managers_password_strength_policy","Length":"managers_password_strength_length_policy","Pwned":"managers_password_strength_pwned_policy","Strength":"managers_password_strength_strength_policy"}},"Typings":{"Contexts":"types_contexts","Enums":"types_enums","Hooks":"types_hooks","Models":"types_models","Repositories":"types_repositories","Sessions":"types_sessions","Secret Encryption":"helpers_secret_encryptor","Side Channels":"types_side_channels"}}
Class Argon2PasswordHashingAlgorithm
Password hashing algorithm using
argon2
.
Hierarchy
Argon2PasswordHashingAlgorithm
Implements
PasswordHashingAlgorithm
Constructors
constructor
Methods
hash
verify
Constructors
constructor
new
Argon2
Password
Hashing
Algorithm
(
hashingOptions
:
Readonly
<
Omit
<
RequireSome
<
Options
,
"hashLength"
|
"memoryCost"
|
"parallelism"
|
"type"
>
,
"version"
|
"salt"
|
"raw"
>
>
)
:
Argon2PasswordHashingAlgorithm
Parameters
hashingOptions:
Readonly
<
Omit
<
RequireSome
<
Options
,
"hashLength"
|
"memoryCost"
|
"parallelism"
|
"type"
>
,
"version"
|
"salt"
|
"raw"
>
>
Returns
Argon2PasswordHashingAlgorithm
Methods
hash
hash
(
password
:
string
)
:
Promise
<
PasswordHash
>
Hashes password.
Parameters
password:
string
Returns
Promise
<
PasswordHash
>
verify
verify
(
plainPassword
:
string
, hashedPassword
:
string
)
:
Promise
<
boolean
>
Verifies password.
Parameters
plainPassword:
string
hashedPassword:
string
Returns
Promise
<
boolean
>
Argon2
Password
Hashing
Algorithm
constructor
hash
verify
Argon2
Password
Hashing
Options
Password hashing algorithm using argon2.