Skip to content

A simple Caesar cipher algorithm to encryption and decryption of text.

License

Notifications You must be signed in to change notification settings

kingrocfella/caesar-cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Caesar Cipher

This repo contains a JavaScript program that does encryption and decryption using the popular ceaser cipher algorithm.

Usage

Simply call the function cipher and supply the necessary arguments as shown below:

cipher ("Text",Shift,Action)

Where Text is the plain text or sentence that is to be encrypted or decrypted, Shift is the number of shifts required and Action is whether you wish to encrypt or decrypt the Text. A sample is shown below:

//encryption
cipher ("This is a simple Ceaser Cipher algorithm",20,'encrypt');
//decryption
cipher ("Nbcm cm u mcgjfy Wyumyl Wcjbyl ufailcnbg",20,'decrypt');

That's it!

License

MIT

Free Software, Enjoy!!! Don't forget to star this repo..

About

A simple Caesar cipher algorithm to encryption and decryption of text.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published