encryptdata
v2.0.3
Published
Hashing algorithms that allows you to encypt your strings
Downloads
1
Maintainers
Readme
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!