CalculateSecret Method
CalculateSecret(ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>)
Passes a user-supplied UTF-8 encoded password through 1000 rounds of PBKDF2 with the salt value (the deviceID returned in SelectResponse).
C#
protected static byte[] CalculateSecret(ReadOnlyMemory<byte> password, ReadOnlyMemory<byte> salt)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlyMemory<System.Byte> | password | |
System.ReadOnlyMemory<System.Byte> | salt |
Returns
System.Byte[]
16 bytes secret for authentication.