07-31-2012 06:24 AM
I'm developing a Blackberry WebWorks OS 5+ application.
I need to encode a string with BASE64, and another one first with MD5 and then BASE64.
07-31-2012 07:15 AM
Searching Google you could find the ressources you are targeting very fast:
06-25-2013 03:19 PM
MD5 encoding using crypto.js:
ld/rollups/md5.js"></script> <script> var hash = CryptoJS.MD5("Message"); </script>
06-27-2013 04:19 PM
Its depressing nobody knows what btoa / atob do around here (BASE64)
The problem with MD5 is that there's no inbuilt support in JS for it
It may be worth changing your specs so you can use gseCrypto and one of the SHA family
Additionally MD5 is easily breakable with a Rainbow table, SHA is far more robust - it's still great for straight hashes though (e.g. has this file changed?) - still use it myself