Created
December 27, 2016 11:04
-
-
Save aambrozkiewicz/eaf3617600361701911cd4fb9fb28f9f to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
// php hax0r.php "witam" | pbcopy | |
$alphabet = [ | |
'a' => '/-\\', | |
'b' => '|3', | |
'c' => '(', | |
'd' => '|)', | |
'e' => 'E', | |
'f' => '|=', | |
'g' => 'G', | |
'h' => '|-|', | |
'i' => '|', | |
'j' => 'J', | |
'k' => '|<', | |
'l' => '|_', | |
'm' => '|\/|', | |
'n' => '|\|', | |
'o' => '()', | |
'p' => 'P', | |
'r' => '|2', | |
's' => '5', | |
't' => 'T', | |
'u' => '|_|', | |
'w' => '\/\/', | |
'x' => '><', | |
'y' => '`//', | |
'z' => 'Z' | |
]; | |
foreach (str_split($argv[1]) as $c) { | |
echo $alphabet[strtolower($c)] ?? $c; | |
} | |
echo "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment