Method SetSecret
SetSecret(Byte[])
Sets the secret used to generate passwords.
Declaration
public void SetSecret(byte[] secret)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | secret | A byte array containing the secret value used with the HashAlgorithm to generate onetime passwords. |
Remarks
If the instance was constructed with the eraseSecrets argument set to true, any existing secret will be overwritten in memory with zeros.
SetSecret(Byte[])
Sets the secret used to generate passwords.
Declaration
public void SetSecret(byte[] secret)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | secret | A byte array containing the secret value used with the HashAlgorithm to generate onetime passwords. |
Remarks
If the instance was constructed with the eraseSecrets argument set to true, any existing secret will be overwritten in memory with zeros.