This is a practical project from Opanuj JavaScript course, the project is about creating Caesar's cipher(ROT13).
In cryptography, a Caesar cipher, also known as Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, 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. For example, with a left shift of 3, D would be replaced by A, E would become B, and so on. The method is named after Julius Caesar, who used it in his private correspondence.
So Caesar's cipher is a simple data encryption technique, it is based on an offset of letters in the Alphabet. In this project I will use 13-letter offset: ROT13
Example
Caesar's code by using a ROT13
plain: PRZEPROGRAMOWANI
cipher: CEMRCEBTENZBJNAV
plain: Adrian
cipher: Nqevna
plain: iLoveHiking
cipher: vYbirUvxvat
Live GH-pages: https://adrian-karbowniczyn.github.io/caesar-cipher/
-
Clone this repo
git clone https://github.com/adrian-karbowniczyn/caesar-cipher
-
Go into project folder
-
Make sure you have Node.js with npm from nodejs.org or via nvm | n
-
Download all needed packages to run properly this project
npm install -D parcel-bundler eslint@latest prettier eslint-config-prettier eslint-plugin-prettier jest babel-jest @babel/core @babel/preset-env
npx install-peerdeps --dev eslint-config-airbnb
In the project folder run npm run dev:serve
to start parcel server on http://localhost:5555
To run all the tests just type npm run test