Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 166
Registered: ‎03-04-2011
My Device: Playbook

Encode base64 and MD5 encoding

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.


Do you know how can I do it with HTML5 and Javascript?

Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: Encode base64 and MD5 encoding



Searching Google you could find the ressources you are targeting very fast:



"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
New Member
Posts: 2
Registered: ‎06-24-2013
My Device: z10
My Carrier: mobilis

Re: Encode base64 and MD5 encoding

please visit this site, it may have some js that is used



New Developer
Posts: 4
Registered: ‎05-29-2013
My Device: BB Tablet 10
My Carrier: Cellcom

Re: Encode base64 and MD5 encoding

base64 encoding:

btoa("my string");



MD5 encoding using crypto.js:


<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/md5.js"></script>
    var hash = CryptoJS.MD5("Message");




Posts: 1,230
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Encode base64 and MD5 encoding

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

Click the like button if you find my posts useful!