Skip to content

hungyennn/substitution-cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

substitution-cipher

Substitution cipher is a method of cryptography.
This program encrypt a message by replacing every letter with another letter. (HW from online course CS50)
To decrypt the message, the receiver of the message would need to know the key (a mapping of every alphabet).
Reverse process: translate ciphertext (the encrypt text) into plaintext (original one).

For example, a key might be the string "POMAFTHRLZGECYJIUWSKDVBNQX"
This 26-character key means that A (the first letter of the alphabet) should be converted into P (the first character of the key), Z should be converted into X (the last character of the key), and so forth.
A message like HELLO, then, would be encrypted as RFEEJ.

About

implements a substitution cipher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages