i am using this scrypt from here inside my vb application
I tried this code to hash a hex string:
Imports Replicon.Cryptography.SCrypt
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim ss() As Byte = System.Text.Encoding.Default.GetBytes(TextBox1.Text)
RichTextBox1.Text = System.Text.Encoding.Default.GetString(SCrypt.DeriveKey(ss, ss, 1024, 1, 1, 32))
End Sub
End Class
The hex string inside the textbox:
TextBox1.text = "01000000f615f7ce3b4fc6b8f61e8f89aedb1d0852507650533a9e3b10b9bbcc30639f279fcaa86746e1ef52d3edb3c4ad8259920d509bd073605c9bf1d59983752a6b06b817bb4ea78e011d012d59d4"
It gives me this:
r3Î<ÛãhšÏ-$:8´"ýäP+°‡ W«&‰Â
The excpected result after inversing the little endian is this:
0000000110c8357966576df46f3b802ca897deb7ad18b12f1c24ecff6386ebd9
I think the problem is the byte conversion, string conversion?
Help is appreciated
Thanks to all.