Simple Hash that is always equal between C# and Java
Posted
by
GaiusSensei
on Stack Overflow
See other posts from Stack Overflow
or by GaiusSensei
Published on 2012-06-02T04:06:40Z
Indexed on
2012/06/02
4:40 UTC
Read the original article
Hit count: 152
I have a C# WebService and a (Java) Android Application. Is there a SIMPLE hash function that produces the same result between these two languages? The simplest C# hash is a String.GetHashCode(), but I can't replicate it in Java. The simplest Java hash is not simple at all. And I don't know if I can replicate it exactly in C#.
In case it's relevant, I'm hashing passwords before sending it across the internet. I'm currently using Encode64, but that's obviously not secure since we can reverse it.
© Stack Overflow or respective owner