in reply to encryption golf (one time pad)
undef$/;print<>^<>
One the the <> readlines will read all of the data from all of the files on the command line and the other will return undef so you are xoring everything with nothing leaving the text unchanged.
Update: OK. I missed the scalar context. I was wrong.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: encryption golf (one time pad)
by ikegami (Patriarch) on Mar 17, 2008 at 09:24 UTC | |
by jwkrahn (Abbot) on Mar 17, 2008 at 09:31 UTC | |
by ikegami (Patriarch) on Mar 17, 2008 at 09:40 UTC | |
|
Re^2: encryption golf (one time pad)
by mr_mischief (Monsignor) on Mar 17, 2008 at 09:28 UTC |