Convert user password to acceptable authentication key.

Namespace: SnmpSharpNet
Assembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)

Syntax

C#
public byte[] PasswordToKey(
	byte[] userPassword,
	byte[] engineID
)
Visual Basic
Public Function PasswordToKey ( _
	userPassword As Byte(), _
	engineID As Byte() _
) As Byte()
Visual C++
public:
virtual array<unsigned char>^ PasswordToKey(
	array<unsigned char>^ userPassword, 
	array<unsigned char>^ engineID
) sealed

Parameters

userPassword
Type: array<System..::..Byte>[]()[][]
User password
engineID
Type: array<System..::..Byte>[]()[][]
Authoritative engine id

Return Value

Localized authentication key

Implements

IAuthenticationDigest..::..PasswordToKey(array<Byte>[]()[][], array<Byte>[]()[][])

Exceptions

ExceptionCondition
SnmpSharpNet..::..SnmpAuthenticationExceptionThrown when key length is less then 8 bytes

See Also