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

crypt3

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypt3

  • 1.1.6
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Crypt3

Website / Report Issue / Source Code / Gem Version / Build Status

About

Crypt3 is a pure Ruby version of crypt(3) --a salted one-way hashing of a password.

Supported hashing algorithms are: md5, sha1, sha256, sha384, sha512, rmd160. Only the md5 hashing algorithm is standard and compatible with crypt(3); the others are non-standard.

Features

  • Standard compliant crypt(3) implementation
  • Supports alternate hashing algorithms
  • Written in Ruby (but depends on Ruby's standard digest libraries)

Installing

To install with RubyGems simply open a console and type:

gem install crypt3

Site installation requires Setup.rb (gem install setup), then download the tarball package and type:

tar -xvzf crypt3-1.0.0.tar.gz
cd crypt3-1.0.0
sudo setup.rb all

Windows users use 'ruby setup.rb all'.

Basic Usage

Crypt3 provides a module method call crypt.

Crypt3.crypt('pass')

It will return an encypted string, something like:

'$1$YeNsbWdH$wvOF8JdqsoiLix754LTW90'

The validitly of which can ensured it using check:

Crypt3.check('pass', '$1$YeNsbWdH$wvOF8JdqsoiLix754LTW90')

See the API Documentation for further details and options.

Copyrights

Copyright © 2009 Poul-Henning Kamp

This program is ditributed under the terms of the BSD-2-Clause license.

See LICENSE.txt for full text.

FAQs

Package last updated on 10 Aug 2013

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