Skip to content

6. SCrypt Algorithm

Lucas Eschechola edited this page Dec 8, 2021 · 1 revision

Here's an example of how to use the SCrypt Hash summary using the EscNet micro framework

First configure your dependency in your Startup.cs

services.AddSCryptHasher();



Now receive your dependency via constructor.

private readonly ISCryptHasher _scrpyptHasher;

public MyClass(ISCryptHasher scrpyptHasher){
    _scrpyptHasher = scrpyptHasher;
}



To generate Argon2Id Hash use:

_scrpyptHasher.Hash("YOUR TEXT HERE");




2021 ©


Clone this wiki locally