3

I'd like to be able to generate a simple hash value (on an ordered set of strings, so I'm fine if it's just a hash of the concatenation of the strings) on the client side in Javascript, and generate an identical hash value on the same strings on the server side in C# for an exact comparison. The security is not overwhelmingly critical, so I don't know if it needs to be a fullblown encryption protocol (although if that's the easiest path, I'm open to it). Any suggestions would be appreciated. Thanks!

2 Answers 2

1

If you are after an identical hashing function, why not implement something well-documented, such as this in both javascript and C#, thereby guaranteeing you are hashing the same way on both the client and the server?

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you! Seems nice and easy to implement on both Javascript and C# fronts.
Oops. The link is broken now.
0

Murmur hash is a fast algorithm (albeit not for crypto applications).

http://code.google.com/p/smhasher/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.