Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Personal crypting algorithm

by Asmo (Monk)
on Nov 05, 2001 at 22:59 UTC ( #123388=note: print w/ replies, xml ) Need Help??


in reply to Re: Personal crypting algorithm
in thread Personal crypting algorithm

well; then you just have to change print $result; with $_ = $result; I suppose... But i don't know how the $_ variable is handled with packages (yeah it's my first one) so, if you could tell me if it's the right way to re use the encrypted string...

thx

Asmo


Comment on Re: Re: Personal crypting algorithm
Re: Re: Re: Personal crypting algorithm
by premchai21 (Curate) on Nov 06, 2001 at 03:26 UTC
    Er... no. return $result; Then, caller could do (after importing the functions) $ciphertext = acrypt($plaintext, $key); (or similarly for adecrypt). See perlvar, perlmod, perlsub.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://123388]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-08-30 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls