Как написать зашифрованные слова

Коды и шифры — не одно и то же: в коде каждое слово заменяется другим, в то время как в шифре заменяются все символы сообщения.

В данной статье мы рассмотрим наиболее популярные способы шифрования, а следующим шагом будет изучение основ криптографии.

  1. Стандартные шифры
  2. Цифровые шифры
  3. Как расшифровать код или шифр?

Стандартные шифры

ROT1

Этот шифр известен многим детям. Ключ прост: каждая буква заменяется на следующую за ней в алфавите. Так, А заменяется на Б, Б — на В, и т. д. Фраза «Уйрйшоьк Рспдсбннйту» — это «Типичный Программист».

Попробуйте расшифровать сообщение:

Лбл еёмб, рспдсбннйту?

Сумели? Напишите в комментариях, что у вас получилось.

Шифр транспонирования

В транспозиционном шифре буквы переставляются по заранее определённому правилу. Например, если каждое слово пишется задом наперед, то из hello world получается dlrow olleh. Другой пример — менять местами каждые две буквы. Таким образом, предыдущее сообщение станет eh ll wo ro dl.

Ещё можно использовать столбчатый шифр транспонирования, в котором каждый символ написан горизонтально с заданной шириной алфавита, а шифр создаётся из символов по вертикали. Пример:

Столбчатый шифр транспонирования

Из этого способа мы получим шифр holewdlo lr. А вот столбчатая транспозиция, реализованная программно:

def split_len(seq, length):
   return [seq[i:i + length] for i in range(0, len(seq), length)]
def encode(key, plaintext):
   order = {
      int(val): num for num, val in enumerate(key)
   }
ciphertext = ''

for index in sorted(order.keys()):
   for part in split_len(plaintext, len(key)):
      try:ciphertext += part[order[index]]
         except IndexError:
            continue
   return ciphertext
print(encode('3214', 'HELLO'))

Азбука Морзе

В азбуке Морзе каждая буква алфавита, цифры и наиболее важные знаки препинания имеют свой код, состоящий из череды коротких и длинных сигналов:
Азбука Морзе: кириллицаЧаще всего это шифрование передаётся световыми или звуковыми сигналами.

Сможете расшифровать сообщение, используя картинку?

•−−   −•− −−− −• −•−• •   ••• − •− − −••− ••   • ••• − −••−   −•• • −−−− •• ••−• •−• •− − −−− •−• −•−− 

Шифр Цезаря

Это не один шифр, а целых 26, использующих один принцип. Так, ROT1 — лишь один из вариантов шифра Цезаря. Получателю нужно просто сообщить, какой шаг использовался при шифровании: если ROT2, тогда А заменяется на В, Б на Г и т. д.

А здесь использован шифр Цезаря с шагом 5:

Иербэй йюк ёурбэй нтчйхйцтаъ энщхуж

Моноалфавитная замена

Коды и шифры также делятся на подгруппы. Например, ROT1, азбука Морзе, шифр Цезаря относятся к моноалфавитной замене: каждая буква заменяется на одну и только одну букву или символ. Такие шифры очень легко расшифровываются с помощью частотного анализа.

Например, наиболее часто встречающаяся буква в английском алфавите — «E». Таким образом, в тексте, зашифрованном моноалфавитным шрифтом, наиболее часто встречающейся буквой будет буква, соответствующая «E». Вторая наиболее часто встречающаяся буква — это «T», а третья — «А».

Однако этот принцип работает только для длинных сообщений. Короткие просто не содержат в себе достаточно слов.

Шифр Виженера

Шифр Виженера

Представим, что есть таблица по типу той, что на картинке, и ключевое слово «CHAIR». Шифр Виженера использует принцип шифра Цезаря, только каждая буква меняется в соответствии с кодовым словом.

В нашем случае первая буква послания будет зашифрована согласно шифровальному алфавиту для первой буквы кодового слова «С», вторая буква — для «H», etc. Если послание длиннее кодового слова, то для (k*n+1)-ой буквы, где n — длина кодового слова, вновь будет использован алфавит для первой буквы кодового слова.

Чтобы расшифровать шифр Виженера, для начала угадывают длину кодового слова и применяют частотный анализ к каждой n-ной букве послания.

Попробуйте расшифровать эту фразу самостоятельно:

зюм иэлруй южжуглёнъ

Подсказка длина кодового слова — 4.

Шифр Энигмы

Энигма — это машина, которая использовалась нацистами во времена Второй Мировой для шифрования сообщений.

Есть несколько колёс и клавиатура. На экране оператору показывалась буква, которой шифровалась соответствующая буква на клавиатуре. То, какой будет зашифрованная буква, зависело от начальной конфигурации колес.

Существовало более ста триллионов возможных комбинаций колёс, и со временем набора текста колеса сдвигались сами, так что шифр менялся на протяжении всего сообщения.

Цифровые шифры

В отличие от шифровки текста алфавитом и символами, здесь используются цифры. Рассказываем о способах и о том, как расшифровать цифровой код.

Двоичный код

Текстовые данные вполне можно хранить и передавать в двоичном коде. В этом случае по таблице символов (чаще всего ASCII) каждое простое число из предыдущего шага сопоставляется с буквой: 01100001 = 97 = «a», 01100010 = 98 = «b», etc. При этом важно соблюдение регистра.

Расшифруйте следующее сообщение, в котором использована кириллица:

110100001001101011010000101111101101000010110100

Шифр A1Z26

Это простая подстановка, где каждая буква заменена её порядковым номером в алфавите. Только нижний регистр.

Попробуйте определить, что здесь написано:

15-6-2-16-13-30-26-16-11 17-18-10-14-6-18

Шифрование публичным ключом

шифр публичным ключом

Алгоритм шифрования, применяющийся сегодня буквально во всех компьютерных системах. Есть два ключа: открытый и секретный. Открытый ключ — это большое число, имеющее только два делителя, помимо единицы и самого себя. Эти два делителя являются секретным ключом, и при перемножении дают публичный ключ. Например, публичный ключ — это 1961, а секретный — 37 и 53.

Открытый ключ используется, чтобы зашифровать сообщение, а секретный — чтобы расшифровать.

Как-то RSA выделила 1000 $ в качестве приза тому, кто найдет два пятидесятизначных делителя числа:

1522605027922533360535618378132637429718068114961380688657908494580122963258952897654000350692006139

Как расшифровать код или шифр?

Для этого применяются специальные сервисы. Выбор такого инструмента зависит от того, что за код предстоит расшифровать. Примеры шифраторов и дешифраторов:

  • Азбука Морзе
  • RSA (криптографический алгоритм с открытым ключом)
  • Двоичный код
  • Другие онлайн-дешифраторы

Адаптированный перевод «10 codes and ciphers»


Загрузить PDF


Загрузить PDF

Обродай ожаловатьпай анай иптографиюкрай сай икихаувай!
Независимо от того, пишите ли вы записки своим друзьям в классе или пытаетесь постигнуть криптографию (науку о кодах и шифрах) ради интереса, эта статья может помочь вам узнать некоторые основные принципы и создать свой собственный способ кодировки личных сообщений. Прочитайте шаг 1 ниже, чтобы понять с чего начинать!

Некоторые люди используют слова «код» и «шифр» для обозначения одинаковых понятий, но те, кто серьезно занимаются этим вопросом, знают, что это два абсолютно разных понятия. Секретный код – система, в которой каждое слово или фраза в вашем сообщении заменяются другим словом, фразой или серией символов. Шифр – система, в которой каждая буква вашего сообщения заменяется другой буквой или символом.

Стандартные коды

  1. Изображение с названием Create Secret Codes and Ciphers Step 1

    1

    Создайте свою собственную книгу кода. Любой полноценный код требует наличия книги кода. Придумайте слова или фразы, замещающие необходимые вам слова или фразы, затем соберите их всех вместе в книге кода, чтобы вы могли поделиться ею с вашими супер секретными друзьями.

  2. Изображение с названием Create Secret Codes and Ciphers Step 2

    2

    Создайте ваше сообщение. Используя книгу кода, аккуратно и внимательно напишите сообщение. Обратите внимание, что соединение вашего кода с шифром сделает ваше сообщение еще более защищенным!

  3. Изображение с названием Create Secret Codes and Ciphers Step 3

    3

    Переведите ваше сообщение. Когда ваши друзья получат сообщение, им понадобится использовать их экземпляр книги кода, чтобы перевести сообщение. Убедитесь, что они знают, что вы используете двойной метод защиты.

    Реклама

Книга кода

  1. Изображение с названием Create Secret Codes and Ciphers Step 4

    1

    Выберите книгу. При использовании книги кода вы создадите код, обозначающий место нужных слов в книге. Если вы хотите увеличить шансы того, что любое из необходимых вам слов будет в книге кода, то используйте словари или большие справочники путешественника. Вам необходимо, чтобы количество слов, используемых в книге, было большим и относилось к разным темам.

  2. Изображение с названием Create Secret Codes and Ciphers Step 5

    2

    Переведите слова вашего сообщения в цифры. Возьмите первое слово вашего сообщения и найдите его где-то в книге. После этого запишите номер страницы, номер строки и номер слова. Напишите их вместе для замены нужного вам слова. Делайте эту операцию для каждого слова. Вы также можете использовать этот прием для шифрования фраз, если ваша книга кода может предоставить вам нужную фразу готовой.

    • Итак, например, слово на странице 105, пятая строчка вниз, двенадцатое по счету станет 105512, 1055.12 или чем-то похожим.
  3. Изображение с названием Create Secret Codes and Ciphers Step 6

    3

    Передайте сообщение. Отдайте зашифрованное сообщение вашему другу. Тому понадобится использовать ту же самую книгу для обратного перевода сообщения.

    Реклама

Полицейское кодирование

  1. Изображение с названием Create Secret Codes and Ciphers Step 7

    1

    Выбирайте самые популярные фразы. Этот тип кода работает лучше всего, когда у вас есть набор фраз, которые вы используете чаще всего. Это может быть чем-нибудь от простого «Он симпатичный!» до чего-нибудь более серьезного, например, «Я не могу встретиться прямо сейчас».

  2. Изображение с названием Create Secret Codes and Ciphers Step 8

    2

    Подготовьте код для каждой из фраз. Вы можете использовать аналог полицейского кодирования и присвоить каждой фразе номер или несколько букв или использовать другие фразы (как поступают в больницах). Например, вы можете сказать «1099» вместо «Эта линия прослушивается» или вы можете сказать «Я думаю о том, чтобы поехать порыбачить на этих выходных». Использование цифр легче при письме, но использование фраз выглядит менее подозрительно.

  3. Изображение с названием Create Secret Codes and Ciphers Step 9

    3

    Запомните код. Этот тип кодировки работает лучше всего, если вы можете держать в памяти все фразы, хотя наличие книги кода для подстраховки никогда не повредит!

    Реклама

Шифрование, основанное на дате

  1. Изображение с названием Create Secret Codes and Ciphers Step 9

    1

    Выберите дату. Например, это будет день рождения Стивена Спилберга 18 декабря 1946 года. Напишите эту дату, используя цифры и косые черты (12/18/46), затем уберите черты, чтобы получить шестизначное число 121846, которые вы можете использовать для передачи зашифрованного сообщения.

  2. Изображение с названием Create Secret Codes and Ciphers Step 11

    2

    Присвойте каждой букве цифру. Представьте, что сообщение «Мне нравятся фильмы Стивена Спилберга». Под сообщение вы напишите ваше шестизначное число снова и снова до самого конца предложения: 121 84612184 612184 6121846 121846121.

  3. Изображение с названием Create Secret Codes and Ciphers Step 12

    3

    Зашифруйте ваше сообщение. Напишите буквы слева направо. Передвиньте каждую букву обычного текста на количество единиц, указанных под ней. Буква «М» сдвигается на одну единицу и становится «Н», буква «Н» сдвигается на две единицы и становится «П». Обратите внимание, что буква «Я» сдвигается на 2 единицы, для этого вам необходимо перескочить на начало алфавита, и становится «Б». Ваше итоговое сообщение будет «Нпё хфёгбущг ъйныфя чукгмсё тсйуексеб».

  4. Изображение с названием Create Secret Codes and Ciphers Step 13

    4

    Переведите ваше сообщение. Когда кто-то захочет прочитать ваше сообщение, все, что ему надо будет знать, так это какую дату вы использовали для кодировки. Для перекодировки воспользуйтесь обратным процессом: напишите цифровой код, затем верните буквы в противоположном порядке.

    • Кодирование при помощи даты имеет дополнительное преимущество, так как дата может быть абсолютно любой. Вы также можете изменить дату в любой момент. Это позволяет обновлять систему шифра гораздо легче, чем при использовании других методов. Как бы то ни было лучше избегать таких известных дат как 9 мая 1945 года.

    Реклама

Шифрование при помощи числа

  1. 1

    Выберите с вашим другом секретное число. Например, число 5.

  2. 2

    Напишите ваше сообщение (без пробелов) с этим количеством букв в каждой строчке (не переживайте, если последняя строчка короче). Например, сообщение «Мое прикрытие раскрыто» будет выглядеть так:

    • Моепр
    • икрыт
    • иерас
    • крыто
  3. 3

    Чтобы создать шифр возьмите буквы сверху вниз и запишите их. Сообщение будет «Миикокереррыпыатртао».

  4. 4

    Для расшифровки вашего сообщения ваш друг должен посчитать общее количество букв, разделить его на 5 и определить, есть ли неполные строки. После этого он/она записывает эти буквы в колонки, так чтобы было 5 букв в каждом ряду и одна неполная строка (если есть), и читает сообщение.

    Реклама

Графический шифр

  1. Изображение с названием Create Secret Codes and Ciphers Step 14

    1

    Нарисуйте знаки «решетка» и «+». На листе бумаги создайте основу вашего шифра. Она будет выглядеть, как # и + (поверните знак плюса, чтобы он выглядел как ромб, а не квадрат). [1]

  2. Изображение с названием Create Secret Codes and Ciphers Step 15

    2

    Расставьте буквы по ячейкам. Данные фигуры имеют ячейки между линиями. Заполните эти ячейки двумя буквами алфавита. Размещайте буквы хаотично и не используйте одну и ту же букву дважды.

    • Любой адресат сообщения будет должен иметь такую же копию основы шифра с буквами, для того чтобы прочитать ваше сообщение.
  3. Изображение с названием Create Secret Codes and Ciphers Step 16

    3

    Запишите ваш код. Возьмите первую букву вашего сообщения. Найдите ее в основе шифра. Посмотрите на линии, которые вокруг нее. Нарисуйте такие же линии, как и линии, которые образуют ячейки в основе шифра. Если буква, которую вы пишите, является второй в ячейке, добавьте точку к линиям. Проделайте данную операцию для каждой буквы сообщения.

    Реклама

Перестановка Цезаря

  1. Изображение с названием Create Secret Codes and Ciphers Step 17

    1

    Создайте свой алфавит шифра. Шифр Цезаря перемещает алфавит и затем заменяет буквы их новым номером по порядку. [2]
    Это делает код более трудным для взлома, если вы меняете расстановку регулярно. Например, 3-х перестановочный шифр будет означать, что А становится Э, Б становится Ю, В становится Я и т.д. Если вы хотите написать «Встречаемся завтра на станции», то сообщение будет выглядеть «Яопнвфэвйоь еэяпнэ кэ опэкуёё».

    • Существует много вариантов изменения порядка алфавита перед созданием кода. Это делает шифр более надежным.
  2. Изображение с названием Create Secret Codes and Ciphers Step 18

    2

    Запишите ваше сообщение. Наличие помощника, как декодирующий круг, может сделать это проще, если вы сможете подготовить такое, которое будет подходить вашему коду.

  3. Изображение с названием Create Secret Codes and Ciphers Step 19

    3

    Переведите сообщение. Человек, расшифровывающий ваш код, должен знать только число, чтобы правильно восстановить алфавит. Регулярно меняйте его, но убедитесь, что вы можете безопасно передать адресату, что будет новым числом сдвига алфавита.

    Реклама

Путаный язык

  1. Изображение с названием Create Secret Codes and Ciphers Step 20

    1

    Определите слова, которые начинаются с гласных. Если есть такие, просто добавляйте «ай» на конце слова. Например, «ухо» станет «ухоай», «арка» станет «аркаай» и «оскорбление» станет «оскоблениеай».

  2. Изображение с названием Create Secret Codes and Ciphers Step 21

    2

    Определите слова, которые начинаются с согласной. Если есть такие, то перенесите первую букву слова в конец и добавьте «ай». Если в начале слова стоят две (или более) согласных, переставьте их в конец и добавьте «ай».

    • Например, «труп» станет «уптрай», «грамм» станет «аммграй» и «мысль» станет «ысльмай».
  3. Изображение с названием Create Secret Codes and Ciphers Step 22

    3

    Говорите на путаном языке. Путаный язык работает лучше всего, если на нем говорить быстро, но для этого потребуется некоторое время подготовки. Не прекращайте практиковаться!

    Реклама

Звуковой код

  1. Изображение с названием Create Secret Codes and Ciphers Step 23

    1

    Создайте свой звуковой код. Этот код будет работать также как и азбука Морзе. Вам будет нужно присвоить звуковой ритмичный код каждой букве или отдельному слову. Выберите ритмы, которые вы можете запомнить.

  2. Изображение с названием Create Secret Codes and Ciphers Step 24

    2

    Научите вашему коду других. Код должен быть всегда в памяти, поэтому научите коду всех, с кем планируете его использовать.

  3. Изображение с названием Create Secret Codes and Ciphers Step 25

    3

    Простучите ваше сообщение. Используйте ваши пальцы, конец карандаша или другой инструмент для передачи вашего сообщения. Старайтесь быть скрытными. Вам не надо, чтобы кто-то догадался, что вы общаетесь.

    Реклама

Тарабарский язык

  1. Изображение с названием Create Secret Codes and Ciphers Step 26

    1

    Научитесь говорить на тарабарском языке. Тарабарский язык – языковая игра наподобие путаного языка, но звучит более сложно. Короткое объяснение – вам надо добавлять «-отаг» (или любой аналог)перед каждой гласной в слоге. Это гораздо хитрее, чем звучит на самом деле! Вам потребуется практика, чтобы в совершенстве овладеть этим кодом.

Советы

  • Прячьте ваш код в том месте, о котором знают только отправитель и получатель. Например, развинтите любую ручку и положите ваш код внутрь нее, соберите ручку обратно, найдите место (например, подставка под карандаши) и сообщите получателю место и тип ручки.
  • Шифруйте также и пробелы, чтобы запутать код еще больше. Например, вы можете использовать буквы (Е, Т, А, О и Н работают лучше всего) вместо пробелов. Они называются пустышками. Ы, Ъ, Ь и Й будут выглядеть слишком явными пустышками для опытных взломщиков кодов, поэтому не используйте их или другие выделяющиеся символы.
  • Вы можете создать свой собственный код, переставляя буквы в словах в случайном порядке. «Диж яемн в крапе» — «Жди меня в парке».
  • Всегда отправляйте коды агентам с вашей стороны.
  • При использовании турецкого ирландского вам не нужно специально использовать «эб» перед согласной. Вы можете использовать «иэ», «бр», «из» или любую другую неприметную комбинацию букв.
  • При использовании позиционной кодировки, не стесняйтесь добавлять, удалять и даже переставлять буквы с одного места на другое, чтобы сделать дешифровку еще более трудной. Убедитесь, что ваш партнер понимает, что вы делаете, или все это будет бессмысленным для нее/него. Вы можете разбить текст на части так, чтобы было три, четыре или пять букв в каждой, а затем поменять их местами.
  • Для перестановки Цезаря вы можете переставлять буквы на любое количество мест, которое вы хотите, вперед или назад. Только убедитесь что правила перестановок одинаковы для каждой буквы.
  • Всегда уничтожайте расшифрованные сообщения.
  • Если вы используете свой собственный код, не делайте его слишком сложным, чтобы остальные не смогли его разгадать. Он может оказаться слишком сложным для расшифровки даже для вас!
  • Используйте азбуку Морзе. Это один из самых известных кодов, поэтому ваш собеседник быстро поймет, что это.

Реклама

Предупреждения

  • Если вы пишете код неаккуратно, то это сделает процесс декодирования более сложным для вашего партнера, при условии что вы не используете вариации кодов или шифров, созданные специально, чтобы запутать дешифровальщика (за исключением вашего партнера, конечно).
  • Путаный язык лучше использовать для коротких слов. С длинными словами он не настолько эффективен, потому что дополнительные буквы гораздо более заметны. То же самое при использовании его в речи.

Реклама

Что вам понадобится

Для кодов:

  • Книга или словарь
  • Карандаш
  • Бумага

Для шифров:

  • Партитура для кода
  • Карандаш
  • Бумага
  • Любая дата

Источники

Об этой статье

Эту страницу просматривали 81 817 раз.

Была ли эта статья полезной?


Download Article

Send messages only you and your friends can decipher just like a secret agent


Download Article

  • Using Easy Codes & Ciphers for Kids
  • |

  • Creating Your Own Code
  • |

  • Learning Commonly Used Codes
  • |

  • Developing Your Own Cipher
  • |

  • Studying Common Ciphers
  • |

  • Q&A
  • |

  • Tips

While spies and treasure hunters in movies make cracking codes look super complex, you can actually make your very own secret code or cipher quite easily. No special government training or spy school required. All you need is a bit of creative thinking and a few friends to share the fun with. We’ll teach you everything you need to know about creating codes and ciphers as well as how to read the most common ones. Once you’ve finished reading, start communicating with your friends in your own secret language the next time you see them.

Sample Coded Paragraphs

Things You Should Know

  • Write out words backward so they’re harder to read with just a quick glance. For example, “How are you?” would become “Woh era uoy?”
  • Use color code words for specific situations, such as saying “Code pink!” to your friends when your crush walks in the room.
  • Encipher your messages by replacing each letter you write with the one directly following it in the alphabet. So “Hello” would become “Ifmmp.”
  1. Image titled Create Secret Codes and Ciphers Step 1

    1

    Write out words in reverse. This is a simple way of encoding messages so they can’t be understood with just a quick glance. A message like «Meet me outside» written in reverse would instead be “Teem em edistuo.”[1]

  2. Image titled Create Secret Codes and Ciphers Step 2

    2

    Split the alphabet in half and replace each letter in your message with its opposite. Write out the letters A through M in a single line on a piece of paper. Directly beneath this line, write out the letters N through Z, also in a single line. Change each letter in your message to the letter directly below or above it in the grid you just made.[2]

    • For example, the letter A would be replaced with N, B with O, C with P, and so on and so forth.
    • By using a reflected alphabet, the message “Hello” would instead become “Uryyb.”

    Advertisement

  3. Image titled Create Secret Codes and Ciphers Step 3

    3

    Draw a tic-tac-toe grid to make a pigpen cipher. Draw a tic-tac-toe grid on a piece of paper and write out the letters A through I in the grid going from the left to right, top to bottom, one letter per box. In this example:[3]

    • The first row is made up of the letters A, B, C.
    • The second row has D, E, F.
    • The last row consists of G, H, I.
  4. Image titled Create Secret Codes and Ciphers Step 4

    4

    Create a second tic-tac-toe grid, but draw a dot in each box. Draw another tic-tac-toe grid next to the first one. Fill the grid in with the letters J through R just like how you did with the first grid. Then, draw small dots in each space of the grid as follows:[4]

    • In the first row, starting on the left, place a dot in the lower right corner (letter I), on the bottom side in the middle (letter K), and in the lower left corner (letter L).
    • In the second row, starting on the left, place a dot in the middle of the right side (letter M), in the middle of the bottom side (letter N), and in the middle of the left side (letter O).
    • In the third row, starting on the left, place a dot in the upper right corner (letter P), in the middle of the top side (letter Q), and in the upper left corner (letter R).
  5. Image titled Create Secret Codes and Ciphers Step 5

    5

    Draw 2 X-shaped grids and fill in the rest of the letters. The first X will contain the letters S, T, U, and V. In the second X, place dots in the open spaces surrounding where the X crosses so there is a dot on each side of the center of the X. Then, fill in the remaining letters W, X, Y, and Z.[5]

    • In the first (undotted) X shape, write S in the top space, T on the left side, U on the right, and V on the bottom.
    • In the second (dotted) X shape, write W on the top, X on the left side, Y on the right, and Z on the bottom.
  6. Image titled Create Secret Codes and Ciphers Step 6

    6

    Use the grid surrounding the letters to write in pigpen cipher. The grid shapes (including dots) surrounding the letters are used as substitutes for the letters themselves. Use your pigpen cipher key to translate messages into and out of pigpen.[6]

  7. Image titled Create Secret Codes and Ciphers Step 7

    7

    Choose a specific year, month, and day to use in a date-shift cipher. This might be something with personal significance, or something arbitrary. Write out the date as an unbroken string of numbers. This is going to be your number key, which will be the tool needed by your friend to be able to decode your message.[7]

    • For example, let’s use George Washington’s birthday (2/22/1732). The number key would then be 2221732.
    • If you’ve already agreed to use a date shift cipher with someone, come up with a clue (like “Washington”) you can say to each other to talk about the number key.
  8. Image titled Create Secret Codes and Ciphers Step 8

    8

    Write one number of the date-shift number key under each letter of your message. Write out your message on a piece of paper. Underneath the message, write out a single digit of the number key for each letter of your message. When you reach the last digit of the number key, repeat the key from the beginning. For example, using George Washington’s birthday (2/22/1732):[8]

    • Message: I’m hungry
    • Enciphering:
      I.m.h.u.n.g.r.y
      2.2.2.1.7.3.2.2
      Shift letters forward along the alphabet according to the number key, as in…
    • Coded message: K.O.J.V.U.J.T.A
  9. Image titled Create Secret Codes and Ciphers Step 9

    9

    Use a secret language, like Pig Latin, to both speak and write in code. When you speak Pig Latin, words that start with a consonant sound move that sound to the end of the word and add “ay.” It’s the same for words starting with a cluster of consonants. Words that start with vowels just get “way” or “ay” added to the end of the word.[9]

    • Consonant initial examples: pig = igpay ; me = emay ; too = ootay ; wet = etway ; hello = ellohay
    • Consonant cluster initial examples: glove = oveglay ; shirt = irtshay ; cheers = eerschay
    • Vowel initial examples: ate = ateway ; egg = eggay ; until = untilay ; eat = eatay
  10. Advertisement

  1. Image titled Create Secret Codes and Ciphers Step 10

    1

    Think about what you can do to make your code harder to break. Code books can be stolen, lost, or destroyed, and modern technologies and computer programs can oftentimes break even strong, well-planned code. But codes can be used to condense long messages into a single line, making them great time savers. Think about the complexity of the symbols or words you’ll use to make your code stronger and less easy to figure out.[10]

  2. Image titled Create Secret Codes and Ciphers Step 11

    2

    Decide what kinds of messages you’ll use your code on. Knowing the purpose of your code from the very start will help you avoid doing any unnecessary work. For example, if your goal is to save time, you might only need a few specific code words or symbols. If you’re trying to encode really long and detailed messages, you may need to develop a code book that’s more like a dictionary.[11]

    • Make your codes even more complex by using several different codes in rotation or combination. Just keep in mind that the more codes you use, the more code books you’ll need to make for decoding.
  3. Image titled Create Secret Codes and Ciphers Step 12

    3

    Come up with code words or phrases to replace common words. Start by using constrained writing to condense common phrases into a single code word. For example, “Reading you loud and clear” can be a random name like “Roy.” Then, replace words that are especially critical to the subject matter of your message with their own unique code words. Things like names, locations, and actions are best to replace with code words.[12]

    • Write down these code words and their meaning in your code book, kind of like a dictionary.
    • You don’t need to make a code word for every single word in your message. Partially coding what you want to say will be just as effective.
    • For example, the following message replaces just the most important words with code words. In this case, “tango” means “walk,” “restaurant” means “museum,” and “Roy” means “reading you loud and clear.”
      • Message: About yesterday. I wanted to say, Roy. I’ll tango to the restaurant as planned. Over and out.
      • Meaning: About yesterday. I wanted to say, reading you loud and clear. I’ll walk to the museum as planned. Over and out.
  4. Image titled Create Secret Codes and Ciphers Step 13

    4

    Apply your code book to messages. Use the code words in your code book to start encoding messages. Use just a singular code to make it easier to encode your message, or use multiple codes to make it more complex.

  5. Image titled Create Secret Codes and Ciphers Step 14

    5

    Use a key word as an alternative way to encode your message. Write one letter of the key word under each letter of your message. Repeat the key word until you get to the end of your message. Count how many spaces each letter of your message is away from the letter in the key word. Write this number down and repeat for each letter in your message. The encoded message will be a string of numbers that the recipient will need to decode using the key word.[13]

    • For example, with the key word «SECRET,» each letter of your message would convert to the number of letters between it and the corresponding letter of the keyword as you move along the alphabet. One letter of the keyword is assigned to each letter in your message.
    • Keep repeating the keyword until all the letters in your message have a corresponding letter.
      • Message: Hello
      • Encoding:
        /H/ is 11 letters away from the key /S/
        /e/ is the same (zero) as the key /E/
        /l/ is 9 letters away from the key /C/
        And so on…
      • Coded Message: 11; 0 ; 9 ; 6 ; 10
  6. Image titled Create Secret Codes and Ciphers Step 15

    6

    Decode messages using your code book or key. As you receive coded messages, refer back to your code book or key to make sense of them. This may take you a bit longer at first, but it’ll become more intuitive as you become more familiar with the code. Soon, you’ll be able to read your code like it’s nothing.

  7. Advertisement

  1. Image titled Create Secret Codes and Ciphers Step 16

    1

    Employ the code used by Mary, Queen of Scots. While trying to send messages during a time of political turmoil, Mary, Queen of Scots, used symbols as a substitute code for English letters and common words. View the code by visiting the UK’s National Archives’ cipher website. Some features of Mary’s code you might find useful for your own attempts at code-creating include:[14]

    • The use of simple shapes for high frequency letters, like Mary’s use of a circle for the letter /A/. This saves time while encoding.
    • Common symbols used as part of the new code language, like Mary’s use of «8» as code for the letter «Y.» These can confuse code breakers who might interpret this as a number and not a code symbol.
    • Unique symbols for common words. In Mary’s day, «pray» and «bearer» received unique symbols, but these were more common then than they are today. Still, using symbols for frequent words and phrases saves time and adds complexity.[15]
  2. Image titled Create Secret Codes and Ciphers Step 17

    2

    Use color code words similar to emergency alerts. Code phrases can pack a lot of meaning into a single phrase. Many kinds of organizations use specific colors to indicate a certain emergency or other situation, such as the DEFCON system, security alerts, and medical alerts.[16]
    To mimic this system, come up with some colors to use as code words that apply to your everyday life. They also don’t have to be emergency-related.

    • For example, instead of saying «I’ve got to run to my locker» among your friends, you might use the code word «Code green.»
    • To let your friends know that the person you want to date has entered the room, you might say the code phrase, «Code pink!»
  3. Image titled Create Secret Codes and Ciphers Step 18

    3

    Encode messages using a book key code. Thankfully, books are fairly easy to come by. Using this method, first decide on a book to use as the key to your code. When encoding a message, locate the word you want to send within the book, then send the recipient 3 numbers: the page number, the line number the word is in, and the position of your word within the line starting from the left.[17]

    • Different editions of books might use different page numbers. To ensure the right book is used as a key, include publication information, like edition, year published, and so on with your book key.
    • For example, you might decide on using Frank Herbert’s Dune, with the code looking like the following:
      • Encoded Message: 224.10.1 ; 187.15.1 ; 163.1.7 ; 309.4.4
      • Decoded Message: I’m hiding my words.
  4. Advertisement

  1. Image titled Create Secret Codes and Ciphers Step 19

    1

    Come up with ideas about how you can strengthen your cipher. A cipher uses an algorithm, which is like a process or transformation that is applied to a message consistently. This means that anyone who knows the cipher can translate it. On the other hand, ciphers can be a lot more complex than simple code words, and so might keep your messages more secure form regular folks.[18]

    • Many cryptographers add a key, like the date, to strengthen ciphers. This key adjusts the output values by the corresponding number of the day of the month (on the first, all output values would be changed by one).[19]
  2. Image titled Create Secret Codes and Ciphers Step 20

    2

    Invent an algorithm to apply to messages. You can either invent a completely new algorithm, or use an existing one, such as the ROT1 Cipher (also called the Caesar Cipher). This method simply rotates each letter in your message forward by a single letter.[20]

    • ROT1 Message: Hello
    • ROT1 Enciphered: i ; f ; m ; m ; p
    • Caesar Ciphers can be modified to rotate forward by a different number of letters. So you could make it so that you rotate forward 3 letters instead of just one. In this case “Hello” would become k ; h ; o ; o ; r
  3. Image titled Create Secret Codes and Ciphers Step 21

    3

    Apply your algorithm to start enciphering messages. Add to your algorithm to make it more complex. For example, include a rotating condition to your cipher, like the day of the week. For each day of the week, assign a value, such as 1 through 7. Adjust your cipher by this value when encrypting a message on that day. So on Monday, you shift letters forward by 1. On Tuesday, it’s 2 letters, and so on.[21]

  4. Image titled Create Secret Codes and Ciphers Step 22

    4

    Start deciphering incoming messages that follow your cipher. Reading your cipher over and over will help make the deciphering process a whole lot easier as you gain experience. The great thing about ciphers is that their algorithms are consistent and usually follow some kind of pattern. Getting in the habit of reading ciphers will help you notice trends and crack them a lot faster.

  5. Advertisement

  1. Image titled Create Secret Codes and Ciphers Step 23

    1

    Master Morse Code. In spite of its name, Morse Code is actually a cipher, not a code. Dots and dashes represent long and short electrical signals which in turn represent the letters of the alphabet. Common letters in Morse, represented as long ( _ ) and short (.) signals, include:[22]

    • R ; S ; T ; L = ._. ; _.. ; _ ; ._..
    • A ; E ; O : ._ ; . ; _ _ _
  2. Image titled Create Secret Codes and Ciphers Step 24

    2

    Make use of transposition ciphers. Many greats in history, like the genius Leonardo da Vinci, have written out messages as they would look reflected in a mirror. Because of this, enciphering in this fashion is often called “mirror writing.”[23]
    When you write your message, write from right to left instead of left to right, and write each letter backwards.

    • Transposition ciphers generally treat messages or the formation of letters visually. The image of the message is physically transformed into something else to hide its meaning.[24]
  3. Image titled Create Secret Codes and Ciphers Step 25

    3

    Hide messages by writing them in binary. Binary is the language of 1’s and 0’s used by computers. Use a binary alphabet chart to help encipher and decipher your messages. When enciphering your message, be sure to space out each line of binary clearly so the other person knows where one letter ends and the next begins.[25]

    • The name «Matt» would encipher to binary as: 01001101 ; 01000001 ; 01010100 ; 01010100.
  4. Advertisement

Add New Question

  • Question

    Are there any codes that use pictures instead of letters?

    wikiHow Staff Editor

    This answer was written by one of our trained team of researchers who validated it for accuracy and comprehensiveness.

    wikiHow Staff Editor

    wikiHow Staff Editor

    Staff Answer

    The beauty of secret codes is that you can be as creative as you want when making them! So if you want to use pictures instead of code words or letters to represent a certain word or phrase, that can definitely work. For example, an apple could be «Hi,» while a cat represents the word «walk.» It’s likely best if the picture doesn’t explicitly represent the word (i.e. a picture of a bee actually representing the word «bee»). The more abstract the pictures are in relation to their meanings, the more difficult your code will be to crack.

  • Question

    What if my friends don’t understand the code and don’t know what it says?

    wikiHow Staff Editor

    This answer was written by one of our trained team of researchers who validated it for accuracy and comprehensiveness.

    wikiHow Staff Editor

    wikiHow Staff Editor

    Staff Answer

    You can either teach them how to use your code, or show them the key / code book you made. They can use your guide as a sort of instruction manual for reading your secret code.

  • Question

    Can I use a secret code generator?

    wikiHow Staff Editor

    This answer was written by one of our trained team of researchers who validated it for accuracy and comprehensiveness.

    wikiHow Staff Editor

    wikiHow Staff Editor

    Staff Answer

    Yes, there are a variety of secret code generators. You can use something like a simple cipher wheel, or find a code generator online.

See more answers

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

  • Devise a way to encipher spaces between words as well as the words themselves. This will strengthen your code and make it harder to break. For example, you can use a letter (E, T, A, O, and N work best) instead of a space. These are called nulls.

  • Learn a different script, such as Runic, and make encryption/decryption keys for those who you want to give messages to. You can find these keys online.

  • If you want your code to be more secure, create additional symbols for common word endings and beginnings, like ‘-ing’ and ‘th-‘.

Show More Tips

Thanks for submitting a tip for review!

Advertisement

References

About This Article

Article SummaryX

To create a secret code or cipher, start by writing the letters A through M in one row and the letters N through Z in another row underneath. Then, replace each letter in your message with the letter above or below it to encode your message. For example, since the rows give you letter pairs of H and U, E and R, L and Y, and B and O, you’d encode “Hello” as “Uryyb.” Alternatively, use a simple code like writing words in reverse, such as encoding «Meet me later» to «Teem em retal.» To learn how to create a pigpen cipher or a date shift cipher, keep reading!

Did this summary help you?

Thanks to all authors for creating a page that has been read 1,622,460 times.

Reader Success Stories

  • Adrianna LeCroy

    Adrianna LeCroy

    Nov 21, 2022

    «It was very helpful with my code!»

Did this article help you?


Download Article

Send messages only you and your friends can decipher just like a secret agent


Download Article

  • Using Easy Codes & Ciphers for Kids
  • |

  • Creating Your Own Code
  • |

  • Learning Commonly Used Codes
  • |

  • Developing Your Own Cipher
  • |

  • Studying Common Ciphers
  • |

  • Q&A
  • |

  • Tips

While spies and treasure hunters in movies make cracking codes look super complex, you can actually make your very own secret code or cipher quite easily. No special government training or spy school required. All you need is a bit of creative thinking and a few friends to share the fun with. We’ll teach you everything you need to know about creating codes and ciphers as well as how to read the most common ones. Once you’ve finished reading, start communicating with your friends in your own secret language the next time you see them.

Sample Coded Paragraphs

Things You Should Know

  • Write out words backward so they’re harder to read with just a quick glance. For example, “How are you?” would become “Woh era uoy?”
  • Use color code words for specific situations, such as saying “Code pink!” to your friends when your crush walks in the room.
  • Encipher your messages by replacing each letter you write with the one directly following it in the alphabet. So “Hello” would become “Ifmmp.”
  1. Image titled Create Secret Codes and Ciphers Step 1

    1

    Write out words in reverse. This is a simple way of encoding messages so they can’t be understood with just a quick glance. A message like «Meet me outside» written in reverse would instead be “Teem em edistuo.”[1]

  2. Image titled Create Secret Codes and Ciphers Step 2

    2

    Split the alphabet in half and replace each letter in your message with its opposite. Write out the letters A through M in a single line on a piece of paper. Directly beneath this line, write out the letters N through Z, also in a single line. Change each letter in your message to the letter directly below or above it in the grid you just made.[2]

    • For example, the letter A would be replaced with N, B with O, C with P, and so on and so forth.
    • By using a reflected alphabet, the message “Hello” would instead become “Uryyb.”

    Advertisement

  3. Image titled Create Secret Codes and Ciphers Step 3

    3

    Draw a tic-tac-toe grid to make a pigpen cipher. Draw a tic-tac-toe grid on a piece of paper and write out the letters A through I in the grid going from the left to right, top to bottom, one letter per box. In this example:[3]

    • The first row is made up of the letters A, B, C.
    • The second row has D, E, F.
    • The last row consists of G, H, I.
  4. Image titled Create Secret Codes and Ciphers Step 4

    4

    Create a second tic-tac-toe grid, but draw a dot in each box. Draw another tic-tac-toe grid next to the first one. Fill the grid in with the letters J through R just like how you did with the first grid. Then, draw small dots in each space of the grid as follows:[4]

    • In the first row, starting on the left, place a dot in the lower right corner (letter I), on the bottom side in the middle (letter K), and in the lower left corner (letter L).
    • In the second row, starting on the left, place a dot in the middle of the right side (letter M), in the middle of the bottom side (letter N), and in the middle of the left side (letter O).
    • In the third row, starting on the left, place a dot in the upper right corner (letter P), in the middle of the top side (letter Q), and in the upper left corner (letter R).
  5. Image titled Create Secret Codes and Ciphers Step 5

    5

    Draw 2 X-shaped grids and fill in the rest of the letters. The first X will contain the letters S, T, U, and V. In the second X, place dots in the open spaces surrounding where the X crosses so there is a dot on each side of the center of the X. Then, fill in the remaining letters W, X, Y, and Z.[5]

    • In the first (undotted) X shape, write S in the top space, T on the left side, U on the right, and V on the bottom.
    • In the second (dotted) X shape, write W on the top, X on the left side, Y on the right, and Z on the bottom.
  6. Image titled Create Secret Codes and Ciphers Step 6

    6

    Use the grid surrounding the letters to write in pigpen cipher. The grid shapes (including dots) surrounding the letters are used as substitutes for the letters themselves. Use your pigpen cipher key to translate messages into and out of pigpen.[6]

  7. Image titled Create Secret Codes and Ciphers Step 7

    7

    Choose a specific year, month, and day to use in a date-shift cipher. This might be something with personal significance, or something arbitrary. Write out the date as an unbroken string of numbers. This is going to be your number key, which will be the tool needed by your friend to be able to decode your message.[7]

    • For example, let’s use George Washington’s birthday (2/22/1732). The number key would then be 2221732.
    • If you’ve already agreed to use a date shift cipher with someone, come up with a clue (like “Washington”) you can say to each other to talk about the number key.
  8. Image titled Create Secret Codes and Ciphers Step 8

    8

    Write one number of the date-shift number key under each letter of your message. Write out your message on a piece of paper. Underneath the message, write out a single digit of the number key for each letter of your message. When you reach the last digit of the number key, repeat the key from the beginning. For example, using George Washington’s birthday (2/22/1732):[8]

    • Message: I’m hungry
    • Enciphering:
      I.m.h.u.n.g.r.y
      2.2.2.1.7.3.2.2
      Shift letters forward along the alphabet according to the number key, as in…
    • Coded message: K.O.J.V.U.J.T.A
  9. Image titled Create Secret Codes and Ciphers Step 9

    9

    Use a secret language, like Pig Latin, to both speak and write in code. When you speak Pig Latin, words that start with a consonant sound move that sound to the end of the word and add “ay.” It’s the same for words starting with a cluster of consonants. Words that start with vowels just get “way” or “ay” added to the end of the word.[9]

    • Consonant initial examples: pig = igpay ; me = emay ; too = ootay ; wet = etway ; hello = ellohay
    • Consonant cluster initial examples: glove = oveglay ; shirt = irtshay ; cheers = eerschay
    • Vowel initial examples: ate = ateway ; egg = eggay ; until = untilay ; eat = eatay
  10. Advertisement

  1. Image titled Create Secret Codes and Ciphers Step 10

    1

    Think about what you can do to make your code harder to break. Code books can be stolen, lost, or destroyed, and modern technologies and computer programs can oftentimes break even strong, well-planned code. But codes can be used to condense long messages into a single line, making them great time savers. Think about the complexity of the symbols or words you’ll use to make your code stronger and less easy to figure out.[10]

  2. Image titled Create Secret Codes and Ciphers Step 11

    2

    Decide what kinds of messages you’ll use your code on. Knowing the purpose of your code from the very start will help you avoid doing any unnecessary work. For example, if your goal is to save time, you might only need a few specific code words or symbols. If you’re trying to encode really long and detailed messages, you may need to develop a code book that’s more like a dictionary.[11]

    • Make your codes even more complex by using several different codes in rotation or combination. Just keep in mind that the more codes you use, the more code books you’ll need to make for decoding.
  3. Image titled Create Secret Codes and Ciphers Step 12

    3

    Come up with code words or phrases to replace common words. Start by using constrained writing to condense common phrases into a single code word. For example, “Reading you loud and clear” can be a random name like “Roy.” Then, replace words that are especially critical to the subject matter of your message with their own unique code words. Things like names, locations, and actions are best to replace with code words.[12]

    • Write down these code words and their meaning in your code book, kind of like a dictionary.
    • You don’t need to make a code word for every single word in your message. Partially coding what you want to say will be just as effective.
    • For example, the following message replaces just the most important words with code words. In this case, “tango” means “walk,” “restaurant” means “museum,” and “Roy” means “reading you loud and clear.”
      • Message: About yesterday. I wanted to say, Roy. I’ll tango to the restaurant as planned. Over and out.
      • Meaning: About yesterday. I wanted to say, reading you loud and clear. I’ll walk to the museum as planned. Over and out.
  4. Image titled Create Secret Codes and Ciphers Step 13

    4

    Apply your code book to messages. Use the code words in your code book to start encoding messages. Use just a singular code to make it easier to encode your message, or use multiple codes to make it more complex.

  5. Image titled Create Secret Codes and Ciphers Step 14

    5

    Use a key word as an alternative way to encode your message. Write one letter of the key word under each letter of your message. Repeat the key word until you get to the end of your message. Count how many spaces each letter of your message is away from the letter in the key word. Write this number down and repeat for each letter in your message. The encoded message will be a string of numbers that the recipient will need to decode using the key word.[13]

    • For example, with the key word «SECRET,» each letter of your message would convert to the number of letters between it and the corresponding letter of the keyword as you move along the alphabet. One letter of the keyword is assigned to each letter in your message.
    • Keep repeating the keyword until all the letters in your message have a corresponding letter.
      • Message: Hello
      • Encoding:
        /H/ is 11 letters away from the key /S/
        /e/ is the same (zero) as the key /E/
        /l/ is 9 letters away from the key /C/
        And so on…
      • Coded Message: 11; 0 ; 9 ; 6 ; 10
  6. Image titled Create Secret Codes and Ciphers Step 15

    6

    Decode messages using your code book or key. As you receive coded messages, refer back to your code book or key to make sense of them. This may take you a bit longer at first, but it’ll become more intuitive as you become more familiar with the code. Soon, you’ll be able to read your code like it’s nothing.

  7. Advertisement

  1. Image titled Create Secret Codes and Ciphers Step 16

    1

    Employ the code used by Mary, Queen of Scots. While trying to send messages during a time of political turmoil, Mary, Queen of Scots, used symbols as a substitute code for English letters and common words. View the code by visiting the UK’s National Archives’ cipher website. Some features of Mary’s code you might find useful for your own attempts at code-creating include:[14]

    • The use of simple shapes for high frequency letters, like Mary’s use of a circle for the letter /A/. This saves time while encoding.
    • Common symbols used as part of the new code language, like Mary’s use of «8» as code for the letter «Y.» These can confuse code breakers who might interpret this as a number and not a code symbol.
    • Unique symbols for common words. In Mary’s day, «pray» and «bearer» received unique symbols, but these were more common then than they are today. Still, using symbols for frequent words and phrases saves time and adds complexity.[15]
  2. Image titled Create Secret Codes and Ciphers Step 17

    2

    Use color code words similar to emergency alerts. Code phrases can pack a lot of meaning into a single phrase. Many kinds of organizations use specific colors to indicate a certain emergency or other situation, such as the DEFCON system, security alerts, and medical alerts.[16]
    To mimic this system, come up with some colors to use as code words that apply to your everyday life. They also don’t have to be emergency-related.

    • For example, instead of saying «I’ve got to run to my locker» among your friends, you might use the code word «Code green.»
    • To let your friends know that the person you want to date has entered the room, you might say the code phrase, «Code pink!»
  3. Image titled Create Secret Codes and Ciphers Step 18

    3

    Encode messages using a book key code. Thankfully, books are fairly easy to come by. Using this method, first decide on a book to use as the key to your code. When encoding a message, locate the word you want to send within the book, then send the recipient 3 numbers: the page number, the line number the word is in, and the position of your word within the line starting from the left.[17]

    • Different editions of books might use different page numbers. To ensure the right book is used as a key, include publication information, like edition, year published, and so on with your book key.
    • For example, you might decide on using Frank Herbert’s Dune, with the code looking like the following:
      • Encoded Message: 224.10.1 ; 187.15.1 ; 163.1.7 ; 309.4.4
      • Decoded Message: I’m hiding my words.
  4. Advertisement

  1. Image titled Create Secret Codes and Ciphers Step 19

    1

    Come up with ideas about how you can strengthen your cipher. A cipher uses an algorithm, which is like a process or transformation that is applied to a message consistently. This means that anyone who knows the cipher can translate it. On the other hand, ciphers can be a lot more complex than simple code words, and so might keep your messages more secure form regular folks.[18]

    • Many cryptographers add a key, like the date, to strengthen ciphers. This key adjusts the output values by the corresponding number of the day of the month (on the first, all output values would be changed by one).[19]
  2. Image titled Create Secret Codes and Ciphers Step 20

    2

    Invent an algorithm to apply to messages. You can either invent a completely new algorithm, or use an existing one, such as the ROT1 Cipher (also called the Caesar Cipher). This method simply rotates each letter in your message forward by a single letter.[20]

    • ROT1 Message: Hello
    • ROT1 Enciphered: i ; f ; m ; m ; p
    • Caesar Ciphers can be modified to rotate forward by a different number of letters. So you could make it so that you rotate forward 3 letters instead of just one. In this case “Hello” would become k ; h ; o ; o ; r
  3. Image titled Create Secret Codes and Ciphers Step 21

    3

    Apply your algorithm to start enciphering messages. Add to your algorithm to make it more complex. For example, include a rotating condition to your cipher, like the day of the week. For each day of the week, assign a value, such as 1 through 7. Adjust your cipher by this value when encrypting a message on that day. So on Monday, you shift letters forward by 1. On Tuesday, it’s 2 letters, and so on.[21]

  4. Image titled Create Secret Codes and Ciphers Step 22

    4

    Start deciphering incoming messages that follow your cipher. Reading your cipher over and over will help make the deciphering process a whole lot easier as you gain experience. The great thing about ciphers is that their algorithms are consistent and usually follow some kind of pattern. Getting in the habit of reading ciphers will help you notice trends and crack them a lot faster.

  5. Advertisement

  1. Image titled Create Secret Codes and Ciphers Step 23

    1

    Master Morse Code. In spite of its name, Morse Code is actually a cipher, not a code. Dots and dashes represent long and short electrical signals which in turn represent the letters of the alphabet. Common letters in Morse, represented as long ( _ ) and short (.) signals, include:[22]

    • R ; S ; T ; L = ._. ; _.. ; _ ; ._..
    • A ; E ; O : ._ ; . ; _ _ _
  2. Image titled Create Secret Codes and Ciphers Step 24

    2

    Make use of transposition ciphers. Many greats in history, like the genius Leonardo da Vinci, have written out messages as they would look reflected in a mirror. Because of this, enciphering in this fashion is often called “mirror writing.”[23]
    When you write your message, write from right to left instead of left to right, and write each letter backwards.

    • Transposition ciphers generally treat messages or the formation of letters visually. The image of the message is physically transformed into something else to hide its meaning.[24]
  3. Image titled Create Secret Codes and Ciphers Step 25

    3

    Hide messages by writing them in binary. Binary is the language of 1’s and 0’s used by computers. Use a binary alphabet chart to help encipher and decipher your messages. When enciphering your message, be sure to space out each line of binary clearly so the other person knows where one letter ends and the next begins.[25]

    • The name «Matt» would encipher to binary as: 01001101 ; 01000001 ; 01010100 ; 01010100.
  4. Advertisement

Add New Question

  • Question

    Are there any codes that use pictures instead of letters?

    wikiHow Staff Editor

    This answer was written by one of our trained team of researchers who validated it for accuracy and comprehensiveness.

    wikiHow Staff Editor

    wikiHow Staff Editor

    Staff Answer

    The beauty of secret codes is that you can be as creative as you want when making them! So if you want to use pictures instead of code words or letters to represent a certain word or phrase, that can definitely work. For example, an apple could be «Hi,» while a cat represents the word «walk.» It’s likely best if the picture doesn’t explicitly represent the word (i.e. a picture of a bee actually representing the word «bee»). The more abstract the pictures are in relation to their meanings, the more difficult your code will be to crack.

  • Question

    What if my friends don’t understand the code and don’t know what it says?

    wikiHow Staff Editor

    This answer was written by one of our trained team of researchers who validated it for accuracy and comprehensiveness.

    wikiHow Staff Editor

    wikiHow Staff Editor

    Staff Answer

    You can either teach them how to use your code, or show them the key / code book you made. They can use your guide as a sort of instruction manual for reading your secret code.

  • Question

    Can I use a secret code generator?

    wikiHow Staff Editor

    This answer was written by one of our trained team of researchers who validated it for accuracy and comprehensiveness.

    wikiHow Staff Editor

    wikiHow Staff Editor

    Staff Answer

    Yes, there are a variety of secret code generators. You can use something like a simple cipher wheel, or find a code generator online.

See more answers

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

  • Devise a way to encipher spaces between words as well as the words themselves. This will strengthen your code and make it harder to break. For example, you can use a letter (E, T, A, O, and N work best) instead of a space. These are called nulls.

  • Learn a different script, such as Runic, and make encryption/decryption keys for those who you want to give messages to. You can find these keys online.

  • If you want your code to be more secure, create additional symbols for common word endings and beginnings, like ‘-ing’ and ‘th-‘.

Show More Tips

Thanks for submitting a tip for review!

Advertisement

References

About This Article

Article SummaryX

To create a secret code or cipher, start by writing the letters A through M in one row and the letters N through Z in another row underneath. Then, replace each letter in your message with the letter above or below it to encode your message. For example, since the rows give you letter pairs of H and U, E and R, L and Y, and B and O, you’d encode “Hello” as “Uryyb.” Alternatively, use a simple code like writing words in reverse, such as encoding «Meet me later» to «Teem em retal.» To learn how to create a pigpen cipher or a date shift cipher, keep reading!

Did this summary help you?

Thanks to all authors for creating a page that has been read 1,622,460 times.

Reader Success Stories

  • Adrianna LeCroy

    Adrianna LeCroy

    Nov 21, 2022

    «It was very helpful with my code!»

Did this article help you?

Понравилась статья? Поделить с друзьями:
  • Как написать зачеркнутый текст телеграм
  • Как написать зачеркнутый текст на клавиатуре
  • Как написать зачеркнутый текст на авито
  • Как написать зачеркнутый текст на iphone
  • Как написать зачеркнутый ноль на клавиатуре