awais khan wrote:
I want to genertate the encrypted string from desktop and than
Decrypt that string on Palm. But I can't find similar SHA1 or
MD5 algo for Palm.
SHA1 and MD5 are one-way encryption, which means you can encrypt
but not decrypt. So, they won't let you do what you have said
you are trying to do.
If, however, you really do want a hashing algorithm, check out
appendix A of RFC 1321. It includes the reference implementation
for md5. You should be able to use md5c.c, md5.h, and global.h
pretty directly with only very minor changes (like typedefs in
global.h). mddriver.c uses the C standard library, but you
probably don't need it and can use md5c.c's function directly.
If instead you need to encrypt and decrypt, then you will need
some other kind of algorithm, like a symmetric or asymmetric cipher.
In that case, maybe you could describe what you're trying to
accomplish. I haven't done really any crypto on the Palm, so
I can't make too many recommendations, but it seems like one
thing to look at would be pilotSSLeay.
Some links:
http://www.faqs.org/rfcs/rfc1321.html
http://www.isaac.cs.berkeley.edu/pilot/
- Logan
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/