.NET scrypt implementation

I read about scrypt and some of its advantages over bcrypt hashing in certain circumstances.

In any case, it seems that scrypt is not yet so widely used. Has anyone seen so far its implementation in .NET (preference from C #)?

+53
c # cryptography hash scrypt
Jan 30 '11 at 10:25
source share
3 answers

Finally, I found the scrypt implementation in C # in the CryptSharp library .
The library is open source and uses the ISC license .

Version History

1.2.0 January 23, 2011:
SCrypt KDF is now supported as CryptSharp.Utility.SCrypt.
Added djb Salsa20 required by SCrypt.

+52
Mar 11 2018-11-11T00:
source share

Here's the new SCrypt implementation for .NET: https://github.com/replicon/Replicon.Cryptography.SCrypt

Unlike CryptoSharp, which is an excellent library, it is implemented as a wrapped wrapper around its own library. This allows you to use instructions at your own level (for example, SSE2) to slightly improve implementation performance.

The disadvantage is that it must contain its own compiled assemblies, determine the correct one, use it, unpack it, and then load it. This means that it is not ideal for all environments, but works great where it works.

+19
Dec 01 2018-12-12T00: 00Z
source share

In the case, like me, you came to this question through a quick google (appeared as the top link), now you can load SCrypt as a Nuget package into your project.

PM> Install-Package Scrypt.NET 

Use the following:

 ScryptEncoder encoder = new ScryptEncoder(); string hashsedPassword = encoder.Encode("mypassword"); 

and comparisons

 ScryptEncoder encoder = new ScryptEncoder(); bool areEquals = encoder.Compare("mypassword", hashedPassword); 

github link here

+14
May 11 '15 at 14:11
source share



All Articles