Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

encryption-utils

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

encryption-utils

## Install module ``` npm install --save encryption-utils ``` or ``` yarn install --save encryption-utils ```

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Easy encryption module

for AES256-CBC and create SHA256 hash

Install module

npm install --save encryption-utils

or

yarn install --save encryption-utils

Import module

const Encryption = require('encryption-utils');

const encryptionUtils = new Encryption('insert_your_32_characterKey_here','insert_your_12_character');
Encrypt data to aes256-cbc hash
const encryptedStr = encryptionUtils.encryptAes256cbc('some_string');
Decrypt aes256-cbc hash
const decryptStr = encryptionUtils.decryptAes256cbc(encrypted_data);
Create sha256 hash
encryptionUtils.createSha256("Hello world");

Keywords

FAQs

Package last updated on 18 Sep 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc