password-hashing icon indicating copy to clipboard operation
password-hashing copied to clipboard

dotnet core version

Open 1rosehip opened this issue 9 years ago • 3 comments

Hi, Thank you for the repo. The code could not be compiled in dotnet core because of the following issue: https://github.com/dotnet/corefx/issues/2881 Please consider adding also dotnet core version file. Thanks.

1rosehip avatar Jan 28 '17 12:01 1rosehip

I'd be happy to accept a pull request if someone wants to do that, I'm not familiar with dotnet core.

defuse avatar May 02 '17 21:05 defuse

Hi, To use in dotnet core we just need change this: using (RNGCryptoServiceProvider csprng = new RNGCryptoServiceProvider()) { csprng.GetBytes(salt); } to this: using (var rng = RandomNumberGenerator.Create()) { rng.GetBytes(salt); }

dan2dev avatar Jun 07 '17 14:06 dan2dev

I created a Pull Request to include the file I made.

dan2dev avatar Jun 07 '17 14:06 dan2dev