A lightweight package that allows you to encrypt your strings or data.
Install EncryptData with npm
npm install encryptdata| Function | Return type | Parameters |
|---|---|---|
InOrderHash |
string |
Key?: string |
DoubleDisplace |
string |
Flip, Randomize?: Boolean |
CaesarCipher |
string |
Step?: Number |
HexShift |
string |
shift?: Boolean |
const Hashtag = require("encryptdata")
let string = new Hashtag.Hash("sample text!").DoubleDisplace(true, true, [1,0,0,1])
console.log(string)
Returns:
>> !saTxMpeTlE