2.0.3 • Published 2 years ago
encryptdata v2.0.3
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
Function | Return type | Parameters |
---|---|---|
InOrderHash | string | Key?: string |
DoubleDisplace | string | Flip?, Randomize?: Boolean |
CaesarCipher | string | Step?: Number |
HexShift | string | Shift?: Boolean |
Decrypt
Function | Return type | Parameters |
---|---|---|
CaesarCipher | string | Step?: 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!