Skip to content

AltariumDEV/Caesar-Cipher-Module---NodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Caesar Cipher Module - NJS

This is a module that allows you to encode, decode and crack strings using the caesar cipher pattern.

3 Functions

The 2 main functions are:

  • encode(string, int shift) - encodes a string by shifting the alphabet by shift
  • decode(string, int shift) - decodes a string by reversing the encoder with shift. If no shift given it will default to 2.

There is an extra function called:

  • crack(string) - gives an output of all 25 possible shift variations, the right one is surely within these (use if you don't know the shift with decode)

How to use

  • Simply download the caesar_module.js and put it into your /custom_modules/ folder, after that simply put let caesar = require('./custom_modules/caesar_module.js'); at the top of your file.
This module will not be available on NPM because there is like a thousand of them there already.

About

It's a module that enables you to do a basic caesar cipher.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published