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

Re: Re: Re: Reversible per-line "encryption"

by xtype (Deacon)
on Jan 26, 2002 at 01:38 UTC ( #141667=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Reversible per-line "encryption"
in thread Reversible per-line "encryption"

Non the less, you would think it up to the person providing the data.

Btw, that was why I had the (subtle) invitation to golf a ciphering/deciphering algorithm which allowed for different "salts".

Never used golf before… but something else that might work is to use the Xor operator. If you Xor something twice you get the original value.
my $passphrase = "I love group ABC"; … $text ^= $passphrase; $line = $groupID . "\|" . $text; print "$line\n"; … if($group eq $myGroup) { $data ^= $passphrase; } print "$data\n";
Read that in a Steven Holznar book ...I think.
update: Although that may be less obscure than my first idea.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2022-05-16 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (63 votes). Check out past polls.

    Notices?