Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Encryption/Decryption Program:

by oiskuu (Hermit)
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)?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1085355]
[thezip]: Is there an analogy for '&' (ie. run commandline process in background) for Windows commandline?
[Corion]: thezip: start "some title" path\to\that\ application, but that will open another console window
[Corion]: thezip: If you want to confuse your users, use system(1, "that\\command" );, which will make Perl launch it in the background
[Corion]: That will keep the console window open even though the user can't type into it anymore
[thezip]: So I have a script that generates a log file. After script completion, I want tohave VIM open this logfile.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2017-03-27 18:46 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (321 votes). Check out past polls.