Skip to content

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 ​

NameDescription
optionsOptional IArgon2Options for configuring hashing parameters. If null, default settings will be used.
passwordThe plain-text password to hash.

Returns ​

A PHC-encoded Argon2 hash string that includes the hash, salt, and all necessary parameters.