text-encrypter
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Text Encrypter

This is very small and lightweight library that is capable to encrypt and decrypt the text using caesar cipher mechanism.

Installation

Install text-encrypter with npm/yarn

  npm install text-encrypter // npm
  yarn add text-encrypter // yarn

Usage/Examples

Import

import { encrypt, decrypt } from 'text-encrypter'; // ES6
const { encrypt, decrypt } = require('text-encrypter'); // CommonJS

Data

const value = 'Hello World';
const shift = 3; // Default is 1
const ignoreSpecialCharacters = false; // Default is true

Usage

// Encrypt
let encryptedText = encrypt(value, shift, ignoreSpecialCharacters);

// Decrypt
let decryptedText = decrypt(value, shift, ignoreSpecialCharacters);

Contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request :D

Author

text-encrypter © Yousuf
Authored and maintained by Yousuf Kalim.

GitHub @yousufkalim · LinkedIn @yousufkalim

License

MIT

/text-encrypter/

    Package Sidebar

    Install

    npm i text-encrypter

    Weekly Downloads

    38

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    32.7 kB

    Total Files

    32

    Last publish

    Collaborators

    • yousufkalim