[ic] MD5 hex

roland interchange-users@interchange.redhat.com
Mon May 27 06:39:01 2002


I'm using IC 4.8, so I've done:
md5hash.tag file and I put it in my usertag directory,
I restated interchange
I put in a page something like
[md5hash]abc&def[/md5hash]
but if I go to see the page I see
[md5hash]abc&def[/md5hash]

My error log are clean.

My MD5 is Digest::MD5 (v2.13).
any idea where I wrong?
Thanks a lot


> It is a really basic suggestion, but did you stop & restart interchange
> after you added your own user tag. Apply changes is not enough.
>
>
> >From: "Jonathan Clark" <jonc@webmaint.com>
> >Reply-To: interchange-users@interchange.redhat.com
> >To: <interchange-users@interchange.redhat.com>
> >Subject: RE: [ic] MD5 hex
> >Date: Fri, 24 May 2002 12:45:39 +0100
> >
> > > > > 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]
> > > >
> >...
> > >
> > > Sorry... It doesn't works.
> > > Any idea?
> > > I'm using IC 4.8
> >
> >Please provide more information:
> >
> >what is the code you are using on the page?
> >What do you see?
> >Are there any errors in the error log (catalog/global)?
> >What are you trying to do exactly? Mike kindly posted code based upon a
> >guess.
> >
> >Jonathan
> >Webmaint.
> >
> >
> >_______________________________________________
> >interchange-users mailing list
> >interchange-users@interchange.redhat.com
> >http://interchange.redhat.com/mailman/listinfo/interchange-users
>
>
>
>
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users