HashHelper.HashPassword Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

HashPassword(string, int?)

Generates a PBKDF2 hash for the given plain text password and returns a base64 encoded result.

public static string HashPassword(string password, int? iterations = default(int? ))

Parameters

password
string

Plain text password to be hashed.

iterations
int?

The number of iterations for the operation, null uses the default value Weavy.Core.Helpers.HashHelper.DefaultIterations.

Returns

string

Hash value formatted as a base64 encoded string.