<?php
//Доделай шифрование до нормального уровня
/* Коды для замены букв */
'а' => '1',
'б' => '2',
'в' => '3',
'г' => '4',
'д' => '5',
'е' => '6',
'ё' => '7',
'ж' => '8',
'з' => '9',
'и' => '0',
'й' => '~',
'к' => '!',
'л' => '@',
'м' => '#',
'н' => '$',
'о' => '%',
'п' => '^',
'р' => '&',
'с' => '*',
'т' => '(',
'у' => ')',
'ф' => '-',
'ч' => '=',
'ц' => '{',
'ч' => '}',
'ш' => ':',
'щ' => '"',
'ь' => '|',
'ы' => '/',
'ъ' => '>',
'э' => '<',
'ю' => ',',
'я' => '.'
);
$text = 'нас предали. явка провалена.';
$cipher = strtr($text, $code);
echo "Оригинал: {$text}\nШифровка: {$cipher}\n";
?>
PD9waHAKLy/QlNC+0LTQtdC70LDQuSDRiNC40YTRgNC+0LLQsNC90LjQtSDQtNC+INC90L7RgNC80LDQu9GM0L3QvtCz0L4g0YPRgNC+0LLQvdGPCmVycm9yX3JlcG9ydGluZygtMSk7CgovKiDQmtC+0LTRiyDQtNC70Y8g0LfQsNC80LXQvdGLINCx0YPQutCyICovCiRjb2RlID0gYXJyYXkoCiAgICAn0LAnCT0+CScxJywKICAgICfQsScJPT4JJzInLAogICAgJ9CyJwk9PgknMycsCiAgICAn0LMnCT0+CSc0JywKICAgICfQtCcJPT4JJzUnLAogICAgJ9C1Jwk9PgknNicsCiAgICAn0ZEnCT0+CSc3JywKICAgICfQticJPT4JJzgnLAogICAgJ9C3Jwk9PgknOScsCiAgICAn0LgnCT0+CScwJywKICAgICfQuScJPT4JJ34nLAogICAgJ9C6Jwk9PgknIScsCiAgICAn0LsnCT0+CSdAJywKICAgICfQvCcJPT4JJyMnLAogICAgJ9C9Jwk9PgknJCcsCiAgICAn0L4nCT0+CSclJywKICAgICfQvycJPT4JJ14nLAogICAgJ9GAJwk9PgknJicsCiAgICAn0YEnCT0+CScqJywKICAgICfRgicJPT4JJygnLAogICAgJ9GDJwk9PgknKScsCgkn0YQnCT0+CSctJywKCSfR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