The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
Hi , in one of my previous post I asked about the snitz passwords coding and it works sha256 coding you know...
Here is my old post ...
http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=58984&SearchTerms=sha256
everything works well except sth ... for example with my coding and snitz sha coding
password1254sdsas gives the same result ...
But if a turkish character included it changes ...
For example
snitz coding password : caným
result is : 9fbb8eea2fab7f150a182340b57c1b3b24d4e061089e6e811af3900c2092adb0
result with mine : a17d9c1ae955bfd988900353efbd7b482d1644d55e04a034f1aa7ceb768e936d
as you see they are absolutely different ...a turkish character gives the exact change ... I am pasting my codes below
Let me remind , I am coding vith asp.net (Vb.net)
Dim txtaktivasyon As String
Dim stranahtar as string = passfield.text.tostring()
Dim HashValue() As Byte
Dim UE As New System.Text.UTF7Encoding
Dim ContentBytes As Byte()
Dim oSHA As New SHA256Managed
ContentBytes = UE.GetBytes(stranahtar)
HashValue = oSHA.ComputeHash(ContentBytes)
For Each chars As Byte In HashValue
If Len(Hex(chars).ToString) = 1 Then
txtaktivasyon &= "0" & Hex(chars).ToString
response.write( Hex(chars).ToString)
Else
txtaktivasyon &= Hex(chars).ToString<
everything works well except sth ... for example with my coding and snitz sha coding
password1254sdsas gives the same result ...
But if a turkish character included it changes ...
For example
snitz coding password : caným
result is : 9fbb8eea2fab7f150a182340b57c1b3b24d4e061089e6e811af3900c2092adb0
result with mine : a17d9c1ae955bfd988900353efbd7b482d1644d55e04a034f1aa7ceb768e936d
as you see they are absolutely different ...a turkish character gives the exact change ... I am pasting my codes below
Let me remind , I am coding vith asp.net (Vb.net)
Dim txtaktivasyon As String
Dim stranahtar as string = passfield.text.tostring()
Dim HashValue() As Byte
Dim UE As New System.Text.UTF7Encoding
Dim ContentBytes As Byte()
Dim oSHA As New SHA256Managed
ContentBytes = UE.GetBytes(stranahtar)
HashValue = oSHA.ComputeHash(ContentBytes)
For Each chars As Byte In HashValue
If Len(Hex(chars).ToString) = 1 Then
txtaktivasyon &= "0" & Hex(chars).ToString
response.write( Hex(chars).ToString)
Else
txtaktivasyon &= Hex(chars).ToString<