Assets/Scripts/Wallet/BouncyCastleHashing.cs
/// <summary>
/// Gets a PBKDF2_SHA256 Hash  (Overload)
/// </summary>
/// <param name="password">The password as a plain text string</param>
/// <param name="saltAsBase64String">The salt for the password</param>
/// <param name="iterations">The number of times to encrypt the password</param>
/// <param name="hashByteSize">The byte size of the final hash</param>
/// <returns>A base64 string of the hash.</returns>
Gets a PBKDF2_SHA256 Hash  (Overload)
Gets a PBKDF2_SHA256 Hash ( Overload )
public string PBKDF2_SHA256_GetHash(string password, string saltAsBase64String, int iterations, int hashByteSize)
    {
        var saltBytes = Convert.FromBase64String(saltAsBase64String);
        var hash = PBKDF2_SHA256_GetHash(password, saltBytes, iterations, hashByteSize);
        return Convert.ToBase64String(hash);
    }
public string PBKDF2_SHA256_GetHash ( string password , string saltAsBase64String , int iterations , int hashByteSize ) { var saltBytes = Convert . FromBase64String ( saltAsBase64String ) ; var hash = PBKDF2_SHA256_GetHash ( password , saltBytes , iterations , hashByteSize ) ; return Convert . ToBase64String ( hash ) ; }
Gets a PBKDF2_SHA256 Hash  (Overload)
Gets a PBKDF2_SHA256 Hash ( Overload )
A base64 string of the hash.
A base64 string of the hash .
password
string
The password as a plain text string
The password as a plain text string
saltAsBase64String
string
The salt for the password
The salt for the password
iterations
int
The number of times to encrypt the password
The number of times to encrypt the password
hashByteSize
int
The byte size of the final hash
The byte size of the final hash