Skip to content

Instantly share code, notes, and snippets.

@kezzyhko
Last active May 11, 2022 11:39
Show Gist options
  • Select an option

  • Save kezzyhko/3b7f737f9b8cf38bb16af714eab31054 to your computer and use it in GitHub Desktop.

Select an option

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".
<?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