[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] MD5 hex
----- Original Message -----
From: "Mike Heins" <mike@valuemedia.com>
To: <interchange-users@interchange.redhat.com>
Sent: Thursday, May 23, 2002 6:13 PM
Subject: Re: [ic] MD5 hex
> Quoting roland (twentys@libero.it):
> > Hi to everybody.
> > I need to convert a series of parameters like
> > customerid=123&Number=456&.......
> > into a MD5 encryption hex.
> > Does anyone has the right instructions?
>
> You cannot "convert" it and retrieve it, which sounds like what you
> want. If you want to use it as a key to retrieve or verify something,
> you can.
>
> A simple tag in interchange.cfg would do the trick:
>
> UserTag md5hash Interpolate
> UserTag md5hash HasEndTag
> UserTag md5hash Routine <<EOF
> use MD5;
> sub {
> my $val = shift;
> my $hash = MD5->hexhash($val);
> return $hash;
> }
> EOF
>
> At that point, it would work as:
>
> [md5hash]what you want to encode[/md5hash]
>
> --
> Mike Heins
> Perusion -- Expert Interchange Consulting
> phone +1.513.523.7621 <mike@perusion.com>
>
> Software axiom: Lack of speed kills.
Sorry... It doesn't works.
Any idea?
I'm using IC 4.8
- Follow-Ups:
- [ic] MD5 hex
- From: interchange-users@interchange.redhat.com (Mike Heins)
- [ic] MD5 hex
- From: interchange-users@interchange.redhat.com (Jonathan Clark)
- [ic] MD5 hex
- From: interchange-users@interchange.redhat.com (roland)