Project

h

0.0
No release in over 3 years
Low commit activity in last 3 years
Small tool that generates salted hashes, scented with the SHA2 function, for those who prefer to put makeup on passwords rather than yield them to Manager™.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 0.8
~> 0.17
~> 12.1
 Project Readme

H.rb

Build Status

Overview

Small tool that generates salted hashes, scented with the SHA-256 hash 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 "my-secret" > ~/.h

$ h p@ssw0rd
+KsELdbw7gM0e2lQsnCskf1albEXgl9MtXgrmvYkIaM=

$ h シークレット
NaNvnGJGWWzzU9DlRSRKZQQER1/9/libXrrghMgBWbU=

Same operations, with Ruby:

require "h"

builder = H::Builder.new("my-secret")

builder.call("p@ssw0rd") # => "+KsELdbw7gM0e2lQsnCskf1albEXgl9MtXgrmvYkIaM="
builder.call("シークレット") # => "NaNvnGJGWWzzU9DlRSRKZQQER1/9/libXrrghMgBWbU="