cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alejandro Raiczyk <alejand...@technisys.com.ar>
Subject RE: Run
Date Thu, 21 Sep 2000 18:22:41 GMT
Hi, here is the code you're asking for:

import [path-to-your-md5-classes].*;
.
.
.

MD5 md5 = new MD5();
md5.Init();
md5.Update(request.getParameter("Passwd"));

with this you have a MD5 object representing your password, check the
methods the class support and choose the one is usefull for you to get the
output.
For example, if you want the hex representation, you can use:

md5.asHex()

Regards.

P.D.: try the md5TestSuite for learning how to use it, I have learnt that
way.


-----Mensaje original-----
De: Gergely Imre [mailto:gimre@nextra.ro]
Enviado el: Jueves 21 de Septiembre de 2000 3:09 PM
Para: cocoon-users@xml.apache.org
Asunto: Re: Run


> Alejandro Raiczyk wrote:
> 
> Take a look to the MD5TestSuite class, it contains a few samples.


OK, I took a look :-) but I'm null in Java, so could you tell me how I
can use it? I have a parameter, let's say "verify.xml&Passwd=alma" and I
want to get Passwd in MD5 format. How can I do that?


> -----Mensaje original-----
> De: Gergely Imre [mailto:gimre@nextra.ro]
> Enviado el: Martes 19 de Septiembre de 2000 11:07 AM
> Para: cocoon-users@xml.apache.org
> Asunto: Re: Run
> 
> And how can I use whem?
> 
> > Alejandro Raiczyk wrote:
> >
> > Hi, I used these classes and they worked fine.

-- 
GImre 
-> ICQ# 86297366

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org

Mime
View raw message