<PackageReference Include="Relativity.Server.Utility.SDK" Version="5000.0.0" />

Password

public class Password
Provides static cryptography members for hashing user passwords using SHA1 and BCrypt.
public Password()

public static SaltInfo BCryptCheckSalt(string salt)

Verifies the BCrypt validity of the provided salt.

public static string BCryptEncrypt(string password, string salt)

BCrypt hashes the provided password using the provided salt.

public static string BCryptGenerateSalt(int rounds)

Generates a salt for use with BCryptEncrypt.

public static byte[] Encrypt(string password, byte[] salt)

SHA1 hashes the provided password using the provided salt.

public static byte[] GenerateSalt()

Generates a salt for use with hashing functions.