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

unix-crypt-td-js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unix-crypt-td-js

Javascript implementation of the Unix crypt(3) DES-based hash

  • 1.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is unix-crypt-td-js?

The unix-crypt-td-js npm package is a JavaScript implementation of the traditional Unix crypt function, which is used for hashing passwords. It supports various hashing algorithms including DES, MD5, SHA-256, and SHA-512.

What are unix-crypt-td-js's main functionalities?

DES Hashing

This feature allows you to hash a password using the DES algorithm. The 'salt' parameter is used to perturb the hashing algorithm.

const unixCrypt = require('unix-crypt-td-js');
const hashedPassword = unixCrypt('password', 'salt');
console.log(hashedPassword);

MD5 Hashing

This feature allows you to hash a password using the MD5 algorithm. The salt parameter should start with '$1$' to indicate MD5 hashing.

const unixCrypt = require('unix-crypt-td-js');
const hashedPassword = unixCrypt('password', '$1$salt$');
console.log(hashedPassword);

SHA-256 Hashing

This feature allows you to hash a password using the SHA-256 algorithm. The salt parameter should start with '$5$' to indicate SHA-256 hashing.

const unixCrypt = require('unix-crypt-td-js');
const hashedPassword = unixCrypt('password', '$5$salt$');
console.log(hashedPassword);

SHA-512 Hashing

This feature allows you to hash a password using the SHA-512 algorithm. The salt parameter should start with '$6$' to indicate SHA-512 hashing.

const unixCrypt = require('unix-crypt-td-js');
const hashedPassword = unixCrypt('password', '$6$salt$');
console.log(hashedPassword);

Other packages similar to unix-crypt-td-js

Keywords

FAQs

Package last updated on 24 Oct 2019

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