Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Encryption/Decryption Program:

by oiskuu (Friar)
on May 07, 2014 at 18:32 UTC ( #1085355=note: print w/ replies, xml ) Need Help??


in reply to Encryption/Decryption Program:

An example little filter. Don't forget to specify the secret key when encoding. :-)

use List::Util q(shuffle); use Getopt::Std; getopts('ds:'); $opt_s and srand $opt_s; @T{@$_} = shuffle @$_ for ([A..Z],[a..z]); $opt_d and %T = reverse %T; s{.}{$T{$&}//$&}eg, print for <>;

Now, could someone please determine if a pair of keys exist that cancel each other (decode without -d, that is)?


Comment on Re: Encryption/Decryption Program:
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-12-26 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (168 votes), past polls