| 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
)
Protected Function DeriveKey (
pass As String,
devid As String,
salt As Byte(),
keyId As Integer
) As Byte()
protected:
array<unsigned char>^ DeriveKey(
String^ pass,
String^ devid,
array<unsigned char>^ salt,
int keyId
)
member DeriveKey :
pass : string *
devid : string *
salt : byte[] *
keyId : int -> byte[]
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:
ByteAn array of bytes containing the new key.
Exceptions Exception | Condition |
---|
ArgumentException | Thrown if keyId is a value other than 0 or 1, or if salt is null or empty. |
See Also