views:

25

answers:

1

My question is related to the one here. I know how to send the credentials to a service. What I need is a way to encrypt those credentials. In browser javascript/ajax, when I need to access a service, I put an ajax call in to a php script, which used hash_hmac('md5', $data, $key) as the encryption method. I need to use md5, but Mojo.model.encrypt in webos only uses Blowfish.

My question is how can I implement md5 encryption in webos?

A: 

You need your own MD5 library. Some of the on-device apps shipped by Palm actually do this. One BSD-licensed implementation is available at http://pajhome.org.uk/crypt/md5/md5.html.

Ben Combee
Ok, thanks for that.
George