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

unixpass

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unixpass

Native implementation of Unix compatible MD5/SHA256/SHA512 password hashing.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
739
decreased by-44.1%
Maintainers
1
Weekly downloads
 
Created
Source

In A Nutshell

This is a native javascript implementation of Unix/Linux compatible password hashing. The currently implemented variants include MD5 ($1$), SHA256 ($5$), and SHA512 ($6$).

The ones missing are

  • Legacy DES encryption for 8 byte US-ASCII passwords (13 character hash including 2 character salt)
  • Legacy extended DES encryption (_ + 24 bit rouns + 24 bit salt ...)
  • Blowfish hashing ($2$, $2a$, $2b$, $2x$, $2y$)

Should some brave soul implement any or all of above, they will be accepted.

Usage

const up = require('unixpass');

// Returns password hash using SHA256
up.crypt('mypassword', '$5$saltsaltmoresalt');

// Returns a password hash with autogenerated salt using SHA512
up.hash('mypassword');

// Returns true if password matches hash, false otherwise
up.hash('mypassword', '$1$saltsalt$dfhjlwheucnsdicbnwuibnwicb');

Author

Timo J. Rinne tri@iki.fi

License

GPL-2.0

Keywords

FAQs

Package last updated on 21 May 2016

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