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

bcryptserver

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bcryptserver

bcrypt microservice

Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
10
900%
Maintainers
1
Weekly downloads
 
Created
Source

bcryptServer

A microservice that expose a bcrypt API server, to separate computational expensive hashing from nodejs application.

It expose two api command:

HASH

POST /hash/[rounds]

Must receive, in json format, a field named data that will be hashed. Round must be a number, indicating the salting rounds.

It return a json containg a result field with the hash or an error field contain the text description of the error.

COMPARE

POST /compare

Must receive, in json format, a field named data with the data to be hashed and a field named 'hash' with the existing hash.

It return a json containg a boolean result field or an error field contain the text description of the error.

HTTPS

With the default configuration it listen on http. To listen on https you should configure, in config.js, HTTPS.key and HTTPS.certificate with the path to the two files.

Inspired by BaaS (https://auth0.engineering/bcrypt-as-a-service-9e71707bda47) but with less dependencies.

Keywords

bcrypt

FAQs

Package last updated on 05 Jul 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