Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.
Muhammad Aviv Burhanudin edited this page Dec 29, 2022 · 6 revisions

cryptography is the process of changing sentences to make them unreadable and vice versa, at first cryptography was used in military affairs and intended to hide information so that the enemy could not read it, the word cryptography in the Romanization of Greek is kryptós which means "hidden, secret"; and graphein which means "to write", or -λογία -logia which means "study".

Classic cryptography

classical era starting from 1900 BC, found a cryptography in a tomb in the Old Kingdom of Egypt circa, but not used for communication purposes, then in 1500 BC, found a simple substitution, then cryptography starts between 600 BC to 500 BC

Atbash

Atbash is a monoalphabetic substitution cipher, Atbash has the initial goal of encrypting the Hebrew alphabet, this is an example of the application of the Atbash cipher in Latin letters:

Plain A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Cipher Z Y X W V U T S R Q P O N M L K J I H G F E D C B A

because there is no key so Atbash has less security

Caesar

Caesar or commonly known as shift cipher is one of the simplest and most widely known ciphers, Caesar cipher is a substitution type for example: if we give 'A' to caesar cipher and give the number 5 as shift then caesar cipher will give the letter 'F', this is full table:

Plain A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Cipher F G H I J K L M N O P Q R S T U V W X Y Z E D C B A

if we have the word "floss jos" and have shift 5 it will be "kqtxx otx"

Rot13

Rot13 stands for "rotate by 13 places" This cipher has characteristics like Caesar cipher, but this cipher only inputs one input without shift, because in this cipher it immediately shifts to 13, here is the ROT13 encryption table:

Plain A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Cipher N O P Q R S T U V W X Y Z A B C D E F G H i J K L M

Affine

affine is a cipher of the type monoalphabetic substitution cipher, where numbers are changed or encrypted using mathematical formulas/functions and changed back with mathematical formulas/functions, which means that the encrypted letters are basically substitution letters, it has the disadvantage of all substitution passwords. Each letter uses the function Fx = (a * x + b) mod 26 where b is the number of shifts, therefore the name of this cipher may be inspired by Affine transformation, if we use 5 as 'a' and 8 as 'b' then the Affine encryption table is :

Plain A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Cipher I N S X C H M R W B G L Q V A F K P U Z E J O T Y D
Clone this wiki locally