Created
July 5, 2011 05:27
-
-
Save diofeher/1064293 to your computer and use it in GitHub Desktop.
leet translator hehe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #coding:utf-8 | |
| from string import maketrans | |
| class Leet(object): | |
| def __init__(self): | |
| self.intab = u"013457" | |
| self.outab = u"oleast" | |
| def encrypter(self, text): | |
| return text.translate(maketrans(self.outab, self.intab)) | |
| def decrypter(self, text): | |
| return text.translate(maketrans(self.intab, self.outab)) | |
| if __name__ == '__main__': | |
| text="53j4 b3m-vind0 4 Wikipedi4, um4 3ncic10pedi4 1ivr3 3 gr47ui74, f3i74 p0r p355045 c0m0 v0ce 3m m4is d3 200 idi0m4s!" | |
| leet = Leet() | |
| print leet.decrypter(text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment