<?php
//Доделай шифрование до нормального уровня
/* Коды для замены букв */
'а' => '1',
'б' => '2',
'в' => '3',
'г' => '4',
'д' => '5',
'е' => '6',
'ё' => '7',
'ж' => '8',
'з' => '9',
'и' => '0',
'й' => '~',
'к' => '!',
'л' => '@',
'м' => '#',
'н' => '$',
'о' => '%',
'п' => '^',
'р' => '&',
'с' => '*',
'т' => '(',
'у' => ')',
'ф' => '-',
'ч' => '=',
'ц' => '{',
'ч' => '}',
'ш' => ':',
'щ' => '"',
'ь' => '|',
'ы' => '/',
'ъ' => '>',
'э' => '<',
'ю' => ',',
'я' => '['
);
$text = 'нас предали. явка провалена.';
$cipher = strtr($text, $code); echo "Оригинал: {$text}\nШифровка: {$cipher}\n";
$transcript=strtr($cipher, $TransArray); ?><br><?php
echo "Оригинал: {$cipher}\nРасшифровка: {$transcript}\n";
?>
PD9waHAKLy/QlNC+0LTQtdC70LDQuSDRiNC40YTRgNC+0LLQsNC90LjQtSDQtNC+INC90L7RgNC80LDQu9GM0L3QvtCz0L4g0YPRgNC+0LLQvdGPCmVycm9yX3JlcG9ydGluZygtMSk7Ci8qINCa0L7QtNGLINC00LvRjyDQt9Cw0LzQtdC90Ysg0LHRg9C60LIgKi8KJGNvZGUgPSBhcnJheSgKICAgICfQsCcJPT4JJzEnLAogICAgJ9CxJwk9PgknMicsCiAgICAn0LInCT0+CSczJywKICAgICfQsycJPT4JJzQnLAogICAgJ9C0Jwk9PgknNScsCiAgICAn0LUnCT0+CSc2JywKICAgICfRkScJPT4JJzcnLAogICAgJ9C2Jwk9PgknOCcsCiAgICAn0LcnCT0+CSc5JywKICAgICfQuCcJPT4JJzAnLAogICAgJ9C5Jwk9PgknficsCiAgICAn0LonCT0+CSchJywKICAgICfQuycJPT4JJ0AnLAogICAgJ9C8Jwk9PgknIycsCiAgICAn0L0nCT0+CSckJywKICAgICfQvicJPT4JJyUnLAogICAgJ9C/Jwk9PgknXicsCiAgICAn0YAnCT0+CScmJywKICAgICfRgScJPT4JJyonLA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