jamesmontemagno / monkey-cache

Easily cache any data structure for a specific amount of time in any .NET application.
MIT License
670 stars 106 forks source link

Give MonkeyCache.FileStore the ability to be FIPS compliant #104

Closed matthewclendening closed 2 years ago

matthewclendening commented 3 years ago

Currently, the MonkeyCache.FileStore barrel uses the MD5 hash algorithm. This will throw an exception on systems that have FIPS enabled. For more info on FIPS - see: https://docs.microsoft.com/en-us/windows/security/threat-protection/fips-140-validation

This patch modifies the barrel ctor to optionally allow the HashAlgorithm to be specified. If a HashAlgorithm is not specified, it defaults to current behavior (using MD5).

jamesmontemagno commented 3 years ago

Nice, i like that! let people pass in what they desire :) I will look at this soon :)