Socket
Socket
Sign inDemoInstall

rotten-encryption

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rotten-encryption

Encodes/decodes text using a Caesar Shift (or ROT-n) cipher.


Version published
Maintainers
1
Install size
2.71 kB
Created

Readme

Source

Rotten Encryption

Node package to encode/decode text using a Caesar Shift (or ROT-n) cipher.

Background

I recently discovered a renewed interest in basic encryption. In an effort to continue my node.js education, I decided to write a simple package to encrypt/decrypt strings using a ROT-n cipher (also commonly known as a Caesar Shift).

Caesar Shift

Note: This is an incredibly rudimentary cipher. Please do not use this package for any serious encryption needs.

Installation

npm install rotten-encryption

Usage

var rotten = require('rotten-encryption');

// number of steps to shift the resulting alphabet
var shift = 6;

// encrypt an input string
rotten.encrypt(shift, 'string to encrypt');

// decrypt an input string
rotten.decrypt(shift, 'string to decrypt');

FAQs

Last updated on 05 Sep 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc