Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple unique hash generator.
Ruby
Tree: 4153e266d1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
MIT-LICENSE
example.rb
hasher.rb
readme.rdoc

readme.rdoc

Hasher

A really simple encryption module, handy to generate randomly hashed unique strings.

Use it like this:

include Hasher
# => Object

generate_hash "somevalueiwanttohash"
# => 1a09a8b3dd4b24d5284ac13705523d1b15b55e64

If you want you can configure a different secret to use in the salt:

SECRET = "ilikebigbuttsandicannotlie"

Copyright © 2009 Josh Nesbitt <josh@josh-nesbitt.net> under MIT-LICENSE.

Something went wrong with that request. Please try again.