[ic] MD5 hex

roland interchange-users@interchange.redhat.com
Mon May 27 11:28:01 2002


Well Jhonathan,
I thank you for your interest,
with the following code

UserTag md5hash Interpolate
UserTag md5hash HasEndTag
UserTag md5hash Routine <<EOF
use MD5;
sub {
     my $val = shift;
     my $hash = MD5->hexhash($val);
     return $hash;
 }
EOF

my global error.log was:
can't locate md5.pm .........

so I changed MD5 with Digest::MD5
----
UserTag md5hash Interpolate
UserTag md5hash HasEndTag
UserTag md5hash Routine <<EOF
sub {
     my $val = shift;
     my $hash = Digest::MD5->hexhash($val);
     return $hash;
 }
EOF
----

now my error.log are:

UserTag 'md5hash' code is not a subroutine reference
In line 9 of the configuration file 'usertag/md5hash.tag':
 UserTag md5hash Routine <<EOF


------------------------------------------
Thanks a lot for reply


> > 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
>
> Firstly, please don't top-quote. Your reply should be in the context of
the message.
>
> Now, as you can see [md5hash] this means that interchange does not have
your usertag compiled in. This is because either:
>
> 1) Your usertag has an error in it and ic has rejected it. If this is the
case you will get an error in the glogal error log file.
> 2) Your usertag directory has not been set to be included during
interchange restart.
>
> If you have checked _both_ error logs then this excludes (1).
>
> Are there other usertags in the directory which do work? Maybe you could
create a simple usertag to test the directory out.
>
> Jonathan
> Webmaint.
>
> > > > > > 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
> >
> >
> > _______________________________________________
> > interchange-users mailing list
> > interchange-users@interchange.redhat.com
> > http://interchange.redhat.com/mailman/listinfo/interchange-users
> >
>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users