2

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?

Community
  • 1
  • 1
George
  • 571
  • 1
  • 8
  • 17

2 Answers2

2

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
  • 16,831
  • 6
  • 41
  • 42
1

Looks like there's a service for this now: https://developer.palm.com/content/api/reference/services/key-manager.html

Beau
  • 362
  • 2
  • 6