项目作者: jodaz

项目描述 :
Caesars cipher algorithm for freeCodeCamp.
高级语言: JavaScript
项目地址: git://github.com/jodaz/caesars-cipher.git
创建时间: 2018-07-22T19:06:10Z
项目社区:https://github.com/jodaz/caesars-cipher

开源协议:MIT License

下载


caesars-cipher

Caesars cipher algorithm for freeCodeCamp.

The Caesar cipher is a simple shift cipher. This means the letters of a given string are shifted by a set amout.

Caesar cipher uses the ROT13 cipher. The values of the letters are shifted by 13 places e.g: 'A' <-> 'N' and 'B' <-> 'O'.

Requirements

  • Write a function which takes a ROT13 encoded string as input and returns a decoded string.
  • All letters should be uppercase.
  • Do not transform any non-alphabetic character.

To try it

Just do npm run convert "HELLO WORLD!".