Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 sha256 turkish character problem (Podge)

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
realnus Posted - 24 September 2005 : 17:12:50
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<
6   L A T E S T    R E P L I E S    (Newest First)
realnus Posted - 26 September 2005 : 17:33:45
Thanks podge , I have decided to open a new form for users to change their passwords . By using "forgot password" area ,the users are updating their passwords with non turkish including ones ...
I couln't find a professional way to solve , but this is no matter ...<
Podge Posted - 25 September 2005 : 12:10:28
Sorry, I don't speak Turkish.... I don't know what they should be converted to.

It doesn't really matter what they are converted to as long as it is consistent but you may end up with problems.

Is there any way you can use inc_sha256.asp to encrypt the passwords instead of the dotnet way ?<
realnus Posted - 25 September 2005 : 11:31:15
hmm some characters can not be seen ...
You can read the post above here : http://www.dpuportal.com/how/how.asp<
realnus Posted - 25 September 2005 : 11:13:38
sorry for late posting podge ... Thanks for your reply ... So as I have understood turkish characters are converted to some characters and thoose characters are being converted to smilar characters ..

For ex : ı >> #253; >> y

replacing ı to y works great :)

But there are some more characters and I dont know which they are smilar to

for ex :
ğ >> #240; >> ?
ş >> #254; >> ?

those two characters are smilar to what , or how can I find an information ... I searched google but couln't find an answer ... can you give me some keywords to search or do you know the way ?

<
Podge Posted - 25 September 2005 : 05:04:57
Snitz doesn't oficially support the Turkish language. You won't find which character ı is changed to. The simplest way to get Snitz & your code to produce the same result would be to replace those characters causing the problem in the password before they are encrypted in both your code and Snitz's sha function.

e.g.

replace (strPassword, "ı", "y") ' lowercase
replace (strPassword, "İ", "Y") ' uppercase


<
realnus Posted - 24 September 2005 : 18:11:42
Well , I decided to try some combinations for a password which is saldıray1983

I think snitz sha coding changes the turkish letters to another character (or characters) and codes according to this ...

Here are the combinations of my tries but It seems snitz doesn't Upper or lowercases those characters
..::snitz::
1720c4894971339393c2b4bf1677df82522e58e7b44ad7d47f95f68206d674b9 saldıray1983
............


.::Mine::..
9477abe26e5956af62c8fb59723f5caed6086fc40e9bc545c85e8de43ee9af55 saldıray1983

2451ade3c0687413bfa22c88f3b3f784c21830b4cba42fcd8696d9bc950b2c78 SALDIRAY1983

b255cc7cb3f13a1a0af5152e305ee1fac7646f4fd874331950f7ff3bfd0750eb saldIray1983

1ff91ce39bf589f82ecbd58714d81eeba4b890700fc6cd8589e001e5e4cd0f7c saldİray1983


9737d037ea08737354774c61e10b83b2eab66050ab7dc750c293e3eab19d736e saldiray1983

so the letter ı is being converted to which character ? what is the difference of the logics

<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000 Version 3.4.07