> correct but. If I'm wrong, I don't know how to use those MD4 and MD5
> algorithms, they take three args. How do I use them?

You can use MD5 as MD4 is now considered to be broken :-)

Err EncDigestMD5(BytePtr strP, Word strLen, Byte digestP[16]);

strP is your data pointer (password), strLen is the length of data in strP
and digestP is the 128 bit digest returned to you for the data in strP. Make
sure to check the error returned by the API ;-)


Regards,
Khurram+

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 6:14 AM
Subject: Re: Unix like crypt()


>
>
> You're right but, since they are algorithms for digital signature I
> have to keep a private key in somewhere. Using a crypt() like
> function, such as fcrypt(), I don't have to store the plain password
> anywhere. Using the fcrypt algorithm the encrypted password is
> generated using salt wich is not a private key since it is stored as
> is in the first two chars of the encrypted password. I think this is
> correct but. If I'm wrong, I don't know how to use those MD4 and MD5
> algorithms, they take three args. How do I use them?
>
> Thanks for help!
> Leonardo Holanda
> (Brazil)
>
>
> --- In [EMAIL PROTECTED], Igor Mozolevsky <[EMAIL PROTECTED]> wrote:
> >
> >
> > --On 09 July 2001 22:14 +0000 [EMAIL PROTECTED] wrote:
> >
> > > I would like to have the following Unix like function:
> > >
> > > crypt(password, salt);
> > >
> > > wich is not reversible and take two args:
> > > password: a string password to be encrypted;
> > > salt: two random chars.
> >
> > Neither MD4 nor MD5 are reversible... Why can't you use them?
> >
> > IM
> >
> > --
> > For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to