Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Quick custom hash generator
CSS Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.yardoc
bin
coverage
lib
test
.coveralls.yml
.gitignore
.ruby-version
.travis.yml
Gemfile
LICENSE.md
README.md
Rakefile
VERSION.semver
h.gemspec

README.md

H

Overview

Small tool that generates salted hashes, scented with the SHA2 function.

Why?

I prefer to put makeup on passwords rather than yield them to Manager™.

Installation

$ gem install h

Configuration

H reads its configuration from the ~/.h file at initialization. This file, which should be readable by its owner only, have the salt value.

Examples

Generate a digest from the system:

$ echo "塩" > ~/.h
$ h シークレット
-q0zMnMSszj8D23a8aNJX_VYry9oSSLZ30XlHkmFt9I=
$ h secret 3
-q0

Same operation, from Ruby:

irb(main):001:0> require "h"
true
irb(main):002:0> H::Generator.new("塩").input "シークレット", 3
"-q0"

Status

  • Gem Version
  • Build Status
  • Dependency Status
  • Inline docs

Copyright (c) 2014 Cyril Wack, released under the ISC license

Something went wrong with that request. Please try again.