Expand my Community achievements bar.

sha1hash is generating different hash value on client and server for russian input characters

Avatar

Former Community Member

Hi All,

We are using sha1hash algorithm for encrypting data in pdf at client end and also using same algorithm in adobe java script at server end with same input for verification.

If i am using english characters as input for sha1hash both the algorithm will give same hash at both the end whereas if i use Russian characters as input then both the algorithm providing different hash.

Please find the both the algorithm in following attachments.

Please reply if you have any suggestion over this topic or suggest me any other algorithm having unicode support

you may reply me through my personal email bachelor.abhishek@gmail.com.

3 Replies

Avatar

Former Community Member

Hi All,

Kindly reply for this issue if you have something on it.

You may suggest us different algorithm unicode supported or any other way where i can check data tampering at server & client end.

Avatar

Level 7

My contact within the Acrobat team told me this : "Hashing is done using raw bytes – encoding shouldn’t matter."

Avatar

Former Community Member

Hi Jayan,

Thanks for your response. i tried with two strings one in english language and other one contains some russian characters, i am using the SHA1 algorithm at client and server ends. english string gives the same hash on both end(client/ server) but other string giving me different result at client and server.

what could be the reason if it is not encoding problem...Please suggest

Thanks in advance.