On Thu, 9 Mar 2000, Mayur Joshi wrote:

> I want to know if there are any data encryption functions available in Perl.

crypt

perldoc -f crypt

> I want to send some data in URL encoded format. I want that data to be
> encrypted & I should be able to decode it in the referred program.
> 
> My href tag is as follows.
> < a href ="http://130.52.10.6/xyz.pl?emp_code=10000">
> I want 10000 to be encrypted & I should be able to decode it in xyz.pl.

I don't understand your requirement.  If you want 10000 encrypted before
it is submitted by the browser, then you'll have to patch every browser
that submits the URL (sorry for that).  What you could do, is write a
javascript that will take the contents of a form field, encrypt it using
your own algo and then submit it.

Your perl script has to implement the same algo.  URL encoding can be done
by perl as well as javascript (in perl you would normally use CGI.pm but
you could do it by hand if you were sure that you had all the data from
the stream (basically, don't try to decode form data by hand because it's
the wrong way).

If you need more clarifications post your questions.

Philip

To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list 
button and fill the appropriate information 
and submit. For any other queries contact the ML maintener

Reply via email to