Last active
May 11, 2022 11:39
-
-
Save kezzyhko/3b7f737f9b8cf38bb16af714eab31054 to your computer and use it in GitHub Desktop.
Script for helping breaking a1z9 cipher. It's almost like a1z26, but 1 digit cat be 3 different letters. This particular message was used in "Calculator: The Game".
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
| <?php | |
| $abc = ' abcdefghijklmnopqrstuvwxyz-'; | |
| $enc = '719 59 5152 75 754514 732 78562 52 5751267'; | |
| $enc = str_replace(' ', '0', $enc); | |
| echo '<pre>'; | |
| for ($offset = 0; $offset <= 2; $offset++) { | |
| foreach (str_split($enc) as $char) { | |
| echo $abc[$char*3 + $offset]; | |
| } | |
| echo '<br>'; | |
| } | |
| echo 'say my name to unlock the sword of numbers'; | |
| echo '</pre>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment