<PackageReference Include="SSH.NET" Version="2023.0.1" />

HMACMD5

public class HMACMD5 : HMACMD5
Computes a Hash-based Message Authentication Code (HMAC) by using the MD5 hash function.
using Renci.SshNet.Common; namespace Renci.SshNet.Security.Cryptography { public class HMACMD5 { private readonly int _hashSize; public override int HashSize => _hashSize; public HMACMD5(byte[] key) : this(key) { _hashSize = this.get_HashSize(); } public HMACMD5(byte[] key, int hashSize) : this(key) { _hashSize = hashSize; } protected override byte[] HashFinal() { return this.HashFinal().Take(this.get_HashSize() / 8); } } }