Here's an example of how to use the Sha1 algorithm cryptographic summary using the EscNet micro framework
First configure your dependency in your Startup.cs
services.AddSha1Hash();
Now receive your dependency via constructor.
private readonly ISha1Hash _sha1Hash; public MyClass(ISha1Hash sha1Hash){ _sha1Hash = sha1Hash; }
To generate Sha1 Hash use:
_sha1Hash.Hash("YOUR TEXT HERE!");
2021 ©
There was an error while loading. Please reload this page.