Socket
Socket
Sign inDemoInstall

logickcrypt

Package Overview
Dependencies
0
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    logickcrypt

Easily encrypt and decrypt sensitive info for safe storeage


Version published
Maintainers
2
Install size
2.93 kB
Created

Readme

Source

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.

Keywords

FAQs

Last updated on 03 Jul 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc