Appearance
PasswordHash Method
Definition
- Namespace:
JASE.Interfaces - Assembly:
JASE.dll
string PasswordHash(string password, IArgon2Options options = null)
csharp
string PasswordHash(string password, IArgon2Options options = null)Hashes a password using Argon2 with optional configuration.
Parameters
| Name | Description |
|---|---|
options | Optional IArgon2Options for configuring hashing parameters. If null, default settings will be used. |
password | The plain-text password to hash. |
Returns
A PHC-encoded Argon2 hash string that includes the hash, salt, and all necessary parameters.