Thanx Andrea stocco,Axel,romain,shanki,Manish,Manuel,Simon,Alex
> ----------
> From: Andrea Stocco[SMTP:[EMAIL PROTECTED]]
> Reply To: A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology.
> Sent: Monday, January 08, 2001 3:27 PM
> To: [EMAIL PROTECTED]
> Subject: R: Password encryption in Java
>
> You can use a MD5 MessageDigest to obtain a 16-byte array of data, and
> then
> pass it to a Base64 encoder.
> Classes to use are:
>
> MessageDigest MD5 = java.security.MessageDigest.getInstance("MD5");
>
> (then you shall call the method "digest(String)" of you instance of MD5
> digest).
>
> and sun.misc.Base64Encoder
>
> (then you shall call the method "encode" on you byte buffer).
>
> I've done it before. If you can wait, I'll find the code I've written and
> send it to you.
>
> [Andrea Stocco]
>
> DREAMWARE S.r.l.
> Multimedia Productions
> ----------------------------------------
> Via Pascoli 19 - 19125 La Spezia - Italy
> Tel. ++39 0187 500968 Fax ++39 0187 516388
>
> Via Caneva 56 - 33013 Gemona del Friuli, Udine - Italy
> Tel. ++39 0432 971811 Fax ++39 0432 971910
>
> ----- Original Message -----
> From: Deepak C S <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 08, 2001 9:35 AM
> Subject: Password encryption in Java
>
>
> > Hi,
> >
> > Can anybody tell about" How we can encrypt Passwords in
> Java??"say
> > like Perl's or Unix Crypt function??
> >
> > i mean,
> >
> > Is there any Java equivalent of unix crypt() func??
> >
> > thanx in advance,
> > Deeps
> >
> >
> __________________________________________________________________________
> _
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html