Convert user password to acceptable authentication key.

Namespace:  SnmpSharpNet
Assembly:  SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.4.3.0 (0.4.3.0)

Syntax

C#
public byte[] PasswordToKey(
	byte[] userPassword,
	byte[] engineID
)
Visual Basic (Declaration)
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 >[]()[]
Authentication password
engineID
Type: array< System..::.Byte >[]()[]
Authoritative engine id

Return Value

Localized authentication key

Implements

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

Remarks

[Missing <remarks> documentation for "M:SnmpSharpNet.AuthenticationMD5.PasswordToKey(System.Byte[],System.Byte[])"]

Exceptions

ExceptionCondition
SnmpAuthenticationExceptionThrown when key length is less then 8 bytes

See Also