Click or drag to resize

SecurIdV3TokenDeriveKey Method

Create an encryption key based on a password, device ID (serial number), salt value, and key number

Namespace:  SamoyedSoftware.ursa
Assembly:  SamoyedSoftware.ursa (in SamoyedSoftware.ursa.dll) Version: 0.2.0
Syntax
protected byte[] DeriveKey(
	string pass,
	string devid,
	byte[] salt,
	int keyId
)

Parameters

pass
Type: SystemString
A string containing a password for the token.
devid
Type: SystemString
A string containing a device ID / serial number for the token.
salt
Type: SystemByte
A string containing a salt value.
keyId
Type: SystemInt32
A number indicating which key to create; must be either 0 or 1.

Return Value

Type: Byte
An array of bytes containing the new key.
Exceptions
ExceptionCondition
ArgumentExceptionThrown if keyId is a value other than 0 or 1, or if salt is null or empty.
See Also