logickcrypt

1.0.4 • Public • Published

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.

Package Sidebar

Install

npm i logickcrypt

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

3 kB

Total Files

3

Last publish

Collaborators

  • scorpacula
  • knox3039