starryrendezv...@gmail.com wrote:
        hash: function(str,method) {
[...] str.charCodeAt(i)

python quite probably outputs the value of str.charCodeAt(i) as some variant of a UTF-16 value. Or UCS-2 with no handling of surrogates.
Under which format is the string inside the file that md5sum hashes ?

Rather than that, you probably should use the python equivalent of java's String.getBytes("charset") http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#getBytes(java.lang.String), determining what is the proper value of charset for your use.

--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to