Encrypt & Decrypt sensitive value with salt using Password Key Derivation Function 2
crypto-hash-verify gives the ability to encrypt and decrypt sensitive data using the key derivation function(s).
To install the package to any .Net Core application please click here.
-
Create .Net core console application (C#)
-
Under project dependencies - add CryptoHashVerify from the nuget package manager.
- GenerateHashString method will return a tuple consists
- hashed password
- salt value
output
- VerifyHashString method will return a true password matches otherwise false.