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
OctetStringThe 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
VersionCodeThe version.
header
ISegmentThe header.
parameters
SecurityParametersThe parameters.
data
ISnmpDataThe scope data.
privacy
IPrivacyProviderThe privacy provider.
length
byte[]The length bytes.
Returns
PasswordToKey(byte[], byte[])
Passwords to key.
public byte[] PasswordToKey(byte[] password, byte[] engineId)
Parameters
Returns
- byte[]
ToString()
Returns a string that represents this instance.
public override string ToString()