.NET implementation of scrypt

前端 未结 3 678
长发绾君心
长发绾君心 2021-01-30 03:22

I\'ve read about scrypt and some of its advantages over the bcrypt hashing algorithm in certain circumstances.

Anyhow, it seems scrypt isn\'t as widely used yet. Has an

3条回答
  •  滥情空心
    2021-01-30 03:34

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

    PM> Install-Package Scrypt.NET
    

    Use as follows:

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

    and comparing

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

    Github link here

提交回复
热议问题