1

Topic: CryptSharp (.NET Library)

Just wanted to give you a total shout man. I have been reading all day today and yesterday. I am a total .Net noob writing a specific server-app and was looking for a way to secure the passwords as much as possible even for a noob. Did an awesome job with this library allowing me to write my server in vb .net....

Was wondering one thing...

Dim cryptedPassword As String
        cryptedPassword = CryptSharp.Utility.SCrypt.ComputeDerivedKey("password", "s4lt", 262144, 8, 1, Nullable, 20)


Why will that not work?

2

Re: CryptSharp (.NET Library)

It will not accept Nullable as 'null' in VB .NET 2010 and I am figuring out the bytes part

3

Re: CryptSharp (.NET Library)

Dim password() As Byte = System.Text.Encoding.Default.GetBytes("password")
Dim salt() As Byte = System.Text.Encoding.Default.GetBytes("s4lt")
cryptedPassword = CryptSharp.Utility.SCrypt.ComputeDerivedKey(password, salt, 262144, 8, 1, vbNull, 30)
x &= System.Text.Encoding.Default.GetString(cryptedPassword)


Confirmed worked under VB .NET 2010