Table of Contents

Class MD5AuthenticationProvider

Namespace
Lextm.SharpSnmpLib.Security
Assembly
SharpSnmpLib.dll

Authentication provider using MD5.

[Obsolete("MD5 is no longer secure. Please use a more secure provider.")]
public sealed class MD5AuthenticationProvider : IAuthenticationProvider
Inheritance
MD5AuthenticationProvider
Implements
Inherited Members

Constructors

MD5AuthenticationProvider(OctetString)

Initializes a new instance of the MD5AuthenticationProvider class.

public MD5AuthenticationProvider(OctetString phrase)

Parameters

phrase OctetString

The phrase.

Properties

CleanDigest

Gets the clean digest.

public OctetString CleanDigest { get; }

Property Value

OctetString

The clean digest.

DigestLength

Gets the length of the digest.

public int DigestLength { get; }

Property Value

int

The length of the digest.

Methods

ComputeHash(VersionCode, ISegment, SecurityParameters, ISnmpData, IPrivacyProvider, byte[]?)

Computes the hash.

public OctetString ComputeHash(VersionCode version, ISegment header, SecurityParameters parameters, ISnmpData data, IPrivacyProvider privacy, byte[]? length)

Parameters

version VersionCode

The version.

header ISegment

The header.

parameters SecurityParameters

The parameters.

data ISnmpData

The scope data.

privacy IPrivacyProvider

The privacy provider.

length byte[]

The length bytes.

Returns

OctetString

PasswordToKey(byte[], byte[])

Passwords to key.

public byte[] PasswordToKey(byte[] password, byte[] engineId)

Parameters

password byte[]

The user password.

engineId byte[]

The engine ID.

Returns

byte[]

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.