On Apr 23, 3:39 pm, Jean-Marc Desperrier <jmd...@alussinan.org> wrote: > Nelson B Bolyard wrote: > > Is that python code? I thought it was JavaScript. > > Yes, you're right, I had a really too quick look at it :-)
On a second thought, I just had a look at this page: https://developer.mozilla.org/En/NsICryptoHash Where it states that one must use the scriptable unicode converter first to get bytes back that were UTF-8 encoded: var converter = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"]. createInstance(Components.interfaces.nsIScriptableUnicodeConverter); // we use UTF-8 here, you can choose other encodings. converter.charset = "UTF-8"; I guess that's what I missed? /rvdh -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto