Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: crypto with core modules only

by stevieb (Canon)
on Aug 28, 2018 at 00:57 UTC ( [id://1221240]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl enc.pl 
    
    ...
    Enter your message to be encrypted: This is an encryption test
    
    Your encrypted message: c7cda0cc55bde684b5db9698d5d6d7b0c9a9bde2d274e1
    +dba6db
    
  2. or download this
    perl denc.pl 
    
    ...
    Enter your encrypted message: c7cda0cc55bde684b5db9698d5d6d7b0c9a9bde2
    +d274e1dba6db
    
    Your decrypted message: This is an encryption test
    
  3. or download this
    use warnings;
    use strict;
    ...
    print "\nYour encrypted message: ";
    print @crypted;
    print "\n\n";
    
  4. or download this
    use warnings;
    use strict;
    ...
    print "\nYour decrypted message: ";
    print map { chr( $_ ) } @decrypted_message;
    print "\n\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-25 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found