Monoalphabetic Cipher: Encode and Decode Online

栏目: IT技术 · 发布时间: 5年前

内容简介:A monoalphabetic cipher is any cipher in which the letters of the plaintext are mapped to ciphertext letters based on a single alphabet key.Substitution ciphers work by replacing each letter of the plaintext with another letter. For this reason, a monoalph

A monoalphabetic cipher is any cipher in which the letters of the plaintext are mapped to ciphertext letters based on a single alphabet key.

Substitution ciphers work by replacing each letter of the plaintext with another letter. For this reason, a monoalphabetic cipher is also called a simple substitution cipher.

It relies on a fixed replacement structure, meaning the substitution is fixed for each letter of the alphabet. Thus, if the letter “a” is encoded as letter “Q”, then every time the letter “a” appears in the plaintext, it’s replaced with the letter “Q”.

Examples of monoalphabetic ciphers include:

  • Caesar cipher, where each letter is shifted based on a numeric key.
  • Atbash cipher, where each letter is mapped to the letter symmetric to it about the center of the alphabet.

There are many different monoalphabetic substitutions ciphers, actually infinitely many, as each letter can be encrypted to any symbol, not just another letter.

What is the difference between a monoalphabetic and a polyalphabetic cipher?

A monoalphabetic cipher mixes up letters of the alphabet and keeps that same arrangement for the entire message while a polyalphabetic cipher uses more than one monoalphabetic cipher with the same message.

To put it simply, polyalphabetic ciphers utilizes multiple, changing ciphertext alphabets to encrypt the plaintext while monoalphabetic ciphers use a single method throughout the entire message.

For example, if you are using a Vigenere disk and you have the two disks stationary while encoding a message, that’s a monoalphabetic cipher.

If on the other hand, you rotate the disks while encoding the same message, while using a keyword, then that becomes a polyalphabetic cipher.

Why are monoalphabetic ciphers easy to break?

All monoalphabetic ciphers can be easily broken using a decryption method called letter frequency analysis, which was invented in the 1300s by Ibn ad-Duraihim .

This is done by studying the text in the language of the cipher, and the frequency of each letter can be determined. For example, in the English language, the letter “E” is the most frequent letter, followed by the letter “T”.

Here is the entire frequency in order:

Frequency order: ETAOINSHRDLCUMWFGYPBVKJXQZ.

By substituting the most frequent letter in the ciphertext with the letter “E”, the second most frequent with the letter “T”, and so on, you will end up with the original plaintext.

For example, try out this example:

Ciphertext: dtz fwj fbjxtrj.

Plaintext:?

You need to determine the type of cipher I used to encode it.


以上所述就是小编给大家介绍的《Monoalphabetic Cipher: Encode and Decode Online》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

CSS实战手册(第2版)

CSS实战手册(第2版)

[美] David Sawyer McFarland / 俞黎敏 / 电子工业出版社 / 2010-6 / 69.80元

本书从介绍最基本的CSS知识开始,到建立用于打印网页的CSS和改进你的CSS习惯的最佳实践。将关于CSS的选择器、继承、层叠、格式化、边距、填充、边框、图片、网站导航、表格、表单、浮动布局、定位网页上的元素,以及用于打印网页的CSS等技术通过逐步地讲解与教程串联了起来。每章内容从简单到复杂,一步一步地建立起一个完整的教程示例,并在每章都会详细讨论一些技巧、最佳实践和各浏览器之间一致性的兼容问题及如......一起来看看 《CSS实战手册(第2版)》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试