Skip to content

ThuyNT13/CipherCaesar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Cryptography - Caesar Cipher

practice C++ and creating Encryption Algorithms

initially created on repl.it


Ci = (Pi + K) mod 26

  • C = cipher text
  • P = plain text
  • K = key int - the number to offset cipher text by
  • i = the ith character in the plain text, corresponding with cipher text index

mod 26 returns an index within alphabetic range, 0-25

ASCII

Utilizing ASCII table's mapping of character to decimal code to convert alphabet to integer, and vice versa.