New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

aes-blowfish-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aes-blowfish-nodejs

Encrypting data in JavaScript

latest
npmnpm
Version
1.2.1
Version published
Maintainers
1
Created
Source

AES BlowFish NodeJS

version

Encrypting data in JavaScript

Installaion

npm i aes-blowfish-nodejs

Usage

let AESblowFish = require('aes-blowfish-nodejs');

# Encryption
let cipherText = AESblowFish.encrypt(payload,"CryptoJS-AES-Key","BlowFish-Key");

# Decryption
let decryptedData = AESblowFish.decrypt(cipherText,"CryptoJS-AES-Key","BlowFish-Key");

Parameters

There are Two keys that are to be kept very secretive.

  • Crypto-JS AES KEY : The key can be a string of your choice, like some sort of a secret phrase.

  • BlowFish KEY : This key should have a length of 32-bits to 448 bits, and it can contain phrase of your choice but in HEXA-DECIMAL.

  • Encryption Input : JSON Object or a string that you need to encrypt.

  • Decryption Input : CipherText that needs to be decrypted.

Security Issues And Concerns

Invalid key For BlowFish Encryption
This error occurs when you have not followed instructions for the key assignment in BlowFish Key.

Change Log

v1.2.1
-Removed debug output
v1.2.0
-Cyrpto encryption and decryption added
v1.0.2
-Updated ReadMe

More Info

for more information on BlowFish : https://www.geeksforgeeks.org/blowfish-algorithm-with-examples/
for more information on Crypto-JS : https://www.npmjs.com/package/crypto-js

for any queries drop a mail at krnak526@gmail.com

© Kiran A K

Keywords

NodeJS

FAQs

Package last updated on 08 Sep 2020

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