Well thats eaxctly I want. I want 100000 encrypted before it is submittted 
by the browser. That means when a user sees the url in the location bar of 
browser it should be seen something like this.
http://130.52.10.6/xay.pl?emp_code=dnsadb86h38

Will the following work?
my $str = crypt(100000);

<a href="http://130.52.10.6/xyz.pl?emp_code=$str

How to decode the string when i get it in encrypted form by param in the 
xyz.pl file?

About the encryption algo you said, well I havent done that before. Can you 
help me in giving me some start in developing that kind of algos.
Regards,
Mayur





>From: Philip S Tellis <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: ILUG Mailing List <[EMAIL PROTECTED]>
>Subject: Re: [ILUG-BOM] Perl Encryption Functions
>Date: Thu, 9 Mar 2000 22:27:08 +0000 (IST)
>
>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
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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