Skip to content

Instantly share code, notes, and snippets.

@aambrozkiewicz
Created December 27, 2016 11:04
Show Gist options
  • Save aambrozkiewicz/eaf3617600361701911cd4fb9fb28f9f to your computer and use it in GitHub Desktop.
Save aambrozkiewicz/eaf3617600361701911cd4fb9fb28f9f to your computer and use it in GitHub Desktop.
<?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