Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##########################################################
- #**Narzew Text Converter
- #**Nikodem Solarz alias Narzew
- ##########################################################
- #**Narzew
- #**20.11.12
- #**http://pokepark.tk
- #########################################################
- #Wpisz tekst do zakodowania
- $tekst = "TEKST DO ZAKODOWANIA"
- #Algorytm kodowania - nie tykaj niżej jeśli nie wiesz, co robisz!
- def zakoduj(x)
- return x.tr("OIZEASGTBJoizeasgtbj","01234567890123456789")
- end
- def odkoduj(x)
- return x.tr("0123456789", "OIZEASGTBJ")
- end
- print "Zakodowany tekst : #{zakoduj($tekst)}\n"
- print "Odkodowany tekst : #{odkoduj($tekst)}\n"
- $stdin.gets
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement