2.0.3 • Published 3 years ago

encryptdata v2.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

logo

A lightweight package that allows you to encrypt or decrypt your strings or data.

Installation

Install EncryptData with npm

  npm install encryptdata

Whats new?

  • Corrected a few bugs In Caesar Cipher where negative steps would return an error
  • Corrected the names of things to make it simpler
  • Added Decryption Method for Caesar Cipher

Functions

Encrypt

FunctionReturn typeParameters
InOrderHashstringKey?: string
DoubleDisplacestringFlip?, Randomize?: Boolean
CaesarCipherstringStep?: Number
HexShiftstringShift?: Boolean

Decrypt

FunctionReturn typeParameters
CaesarCipherstringStep?: Number

More to be added soon

Usage/Examples

const encrypter = require("encryptdata")

let string = new encrypter.Encrypt("sample text!").CaesarCipher(2)
console.log(string)

Returns:
>> tbnqmf ufyu!

let string2 = new encrypter.Decrypt(string).CaesarCipherRevert(2)
console.log(string2)

Returns:
>> sample text!

Authors

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago