Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

New Package Crypt::1337

by suaveant (Parson)
on Sep 20, 2001 at 23:39 UTC ( #113684=CUFP: print w/replies, xml ) Need Help??

With much hard work I have come up with a new package... Crypt::1337, I feel it is my duty to give back to the community and what better than a new form of encryption only idiots could use? Now, keep in mind this is an alpha version, and does lose a bit of formatting... but returns messages in readble format...
package Crypt::1337; use base Exporter; @EXPORT = qw(to_1337 from_leet); sub to_1337 { my($str) = lc $_[0]; $str =~ s/\bto\b/2/g; $str =~ s/ate/8/g; $str =~ tr/letasbgo/13745690/; $str; }; sub from_leet { @str = split /(\s+)/, lc $_[0]; for (@str) { next if /\s/; $_ = 'to' if $_ == 2; $_ = 'a' if $_ == 4; next if(/^\d+$/ && $_ !~ /3?1337/); s/8/ate/g; s/8/to/g; tr/13745690/letasbgo/; } join '', @str; }
and for an example script....
use Crypt::1337; my $enc = to_1337("This is a test, later\n"); print $enc; my $unenc = from_leet($enc); print $unenc;
Enjoy your 1337 h4ckin9.

This is, of course, a joke... :)

                - Ant
                - Some of my best work - Fish Dinner

Replies are listed 'Best First'.
Re: New Package Crypt::1337
by Anonymous Monk on Sep 30, 2001 at 19:21 UTC
    Hmm... have just seen this and it is quite similar to a script I created... except mine is better =) http://www.neozuki.f2s/leetaliser/index.htm I will post the (sloppy) code if you so desire
      Hehe, mine could have been much better, but I just wrote it in 15 minutes as a joke...

                      - Ant
                      - Some of my best work - Fish Dinner

      Resistance is futile - Maverin

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: CUFP [id://113684]
Approved by root
[stevieb]: man, I absolutely LOVE driving in the worst winter conditions. In the mountainous roads, there are extremely few (if any) other drivers. I love the challenge. I've been doing extreme off-road my whole life, and as I said, I'm always well...
[stevieb]: ...prepared for even the very worst
Discipulus seems a part of the globe very unfrindly with Kawasaki riders..
[thezip]: My doggies love it when it snows
[perldigious]: As long as you are a good "boy scout" stevieb, more power to you... but I like my Jeep, and don't like the idea of rolling it or crashing it in to anything. :-)
[thezip]: Me, not as much.
[perldigious]: Mine too thezip, especially my German Shepherd. He looks like he is about to die of heat exhaustion all summer, so he goes nuts when winter comes and he can play in the snow.
[stevieb]: my main off-road vehicle nowadays is a strengthened mercedes ML320. I'm very hard on it, but I've never had any real issues at all (I love how small and light it is, and it has a very, very good centre of gravity for how I roll)

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2016-12-06 16:48 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (112 votes). Check out past polls.