<?php
// Шифровка
/* Коды для замены букв */
'а' => '1',
'б' => '2',
'в' => '3',
'г' => '4',
'д' => '5',
'е' => '6',
'ё' => '7',
'ж' => '8',
'з' => '9',
'и' => '0',
'й' => '#',
'к' => '!',
'л' => '@',
'м' => '$',
'н' => '%',
'о' => '^',
'п' => '&',
'р' => '*',
'с' => '(',
'т' => ')',
'у' => '-',
'ф' => '_',
'х' => '+',
'ц' => '=',
'ч' => '|',
'ш' => ':',
'щ' => ';',
'ь' => '{',
'ы' => '}',
'ъ' => '[',
'э' => ']',
'ю' => '>',
'я' => '>',
);
$text = 'нас предали. явка провалена.';
$cipher = strtr($text, $code);
echo "Оригинал: {$text}\nШифровка: {$cipher}\n";
$decipher = strtr($cipher, $decode);
echo " ======== \n";
echo "Оригинал: {$cipher}\nДешифровка: {$decipher}\n";
PD9waHAKCi8vINCo0LjRhNGA0L7QstC60LAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKCi8qINCa0L7QtNGLINC00LvRjyDQt9Cw0LzQtdC90Ysg0LHRg9C60LIgKi8KJGNvZGUgPSBhcnJheSgKICAgICfQsCcJPT4JJzEnLAogICAgJ9CxJwk9PgknMicsCiAgICAn0LInCT0+CSczJywKICAgICfQsycJPT4JJzQnLAogICAgJ9C0Jwk9PgknNScsCiAgICAn0LUnCT0+CSc2JywKICAgICfRkScJPT4JJzcnLAogICAgJ9C2Jwk9PgknOCcsCiAgICAn0LcnCT0+CSc5JywKICAgICfQuCcJPT4JJzAnLAogICAgJ9C5Jwk9PgknIycsCiAgICAn0LonID0+ICAnIScsCiAgICAn0LsnID0+ICAnQCcsCiAgICAn0LwnID0+ICAnJCcsCiAgICAn0L0nID0+ICAnJScsCiAgICAn0L4nID0+ICAnXicsCiAgICAn0L8nID0+ICAnJicsCiAgICAn0YAnID0+ICAnKicsCiAgICAn0YEnID0+ICAnKCcsCiAgICAn0YInID0+ICAnKScsCiAgICAn0YMnID0+ICAnLScsCiAgICAn0YQnID0+ICAnXycsCiAgICAn0YUnID0+ICAnKycsCiAgICAn0YYnID0+ICAnPScsCiAgICAn0YcnID0+ICAnfCcsCiAgICAn0YgnID0+ICAnOicsCiAgICAn0YknID0+ICAnOycsCiAgICAn0YwnID0+ICAneycsCiAgICAn0YsnID0+ICAnfScsCiAgICAn0YonID0+ICAnWycsCiAgICAn0Y0nID0+ICAnXScsCiAgICAn0Y4nID0+ICAnPicsCiAgICAn0Y8nID0+ICAnPicsCik7CgokdGV4dCA9ICfQvdCw0YEg0L/RgNC10LTQsNC70LguINGP0LLQutCwINC/0YDQvtCy0LDQu9C10L3QsC4nOwokY2lwaGVyID0gc3RydHIoJHRleHQsICRjb2RlKTsKCgplY2hvICLQntGA0LjQs9C40L3QsNC7OiB7JHRleHR9XG7QqNC40YTRgNC+0LLQutCwOiB7JGNpcGhlcn1cbiI7CgokZGVjb2RlID0gYXJyYXlfZmxpcCgkY29kZSk7CiRkZWNpcGhlciA9IHN0cnRyKCRjaXBoZXIsICRkZWNvZGUpOwoKZWNobyAiID09PT09PT09IFxuIjsKZWNobyAi0J7RgNC40LPQuNC90LDQuzogeyRjaXBoZXJ9XG7QlNC10YjQuNGE0YDQvtCy0LrQsDogeyRkZWNpcGhlcn1cbiI7