Skip to content

Latest commit

 

History

History

caesar-cipher

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Caesar cipher

Description

Caesar cipher is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet.

Implementation

caesarCipher(str, num) should shift every letter in a given str by a num (positions down the alphabet).

Example:

caesarCipher('Zoo Keeper', 2) // 'Bqq Mggrgt'