Skip to content

picrap/HashMAC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HashMAC

A flexible HMAC implementation, allowing to specify any HashAlgorithm as input.
Available as a NuGet package.

How to use it

HashMAC itself

Short answer: as a standard HMAC 😉
The HMAC base class derives itself from HashAlgorithm, so except the constructor which takes a secret key, the usage is the same.

Using it with other hashes

SHA3

NuGet packages:

  • SHA3: not not maintained anymore
  • SHA3.net: embeds code from Bouncy Castle

Hashes block sizes (required by HashMAC.Create()):

SHA3 size (bits) Block size (bits) Block size (bytes)
224 1152 144
256 1088 136
384 832 104
512 576 72

References

Thank you

About

An HMAC with any HashAlgorithm

Topics

Resources

License

Stars

Watchers

Forks

Languages