Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 460 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 460 Bytes

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'