Quick Start
Install the library
npm i password-locking
Make your first code
We are encrypting a text using the def1 algorithm in this code block. This algorithm type will be the only one used in all versions. The biggest feature of this algorithm is that you don't need to specify whether you want to encrypt a plain text or decrypt an encrypted text. The system automatically detects and responds accordingly. If you examine the examples, the code in the encrypt block Password 123456789 (-_-)(^-^) will encrypt the text for you, and if you look at the decoding block, it will convert the text we encrypted in the 'encrypt' block back to its original form. Remember that we use salting technique in encryption, so you will encounter a different text each time you encrypt a message
const pl = require("password-locking");
let encrypted = pl.encryption.def1({
text:"Password 123456789 (-_-)(^-^)"
});
FAQ / SSS
Last updated