logickcrypt
v1.0.4
Published
Easily encrypt and decrypt sensitive info for safe storeage
Downloads
2
Readme
logickcrypt
logickcrypt is a lightweight JavaScript library that provides encryption and decryption functions using a custom encryption algorithm based on the Logick principle.
Installation
You can install logickcrypt via npm:
npm install logickcrypt
Usage
To use logickcrypt in your JavaScript project, require the package and use its functions as shown in the example below:
const logickcrypt = require('logickcrypt');
// Encrypt a message
const encryptedMessage = logickcrypt.encrypt('Hello, world!');
// Decrypt the encrypted message
const decryptedMessage = logickcrypt.decrypt(encryptedMessage);
console.log(decryptedMessage); // Output: Hello, world!
API
The logickcrypt package exposes the following functions:
encrypt(message)
//Encrypts the provided message using a salted encryption algorithm and returns the encrypted result.
message (string): The message to encrypt.
decrypt(encryptedMessage)
//Decrypts the provided encryptedMessage using the same salted encryption algorithm and returns the decrypted result.
encryptedMessage (string): The encrypted message to decrypt.