compact string hash
C Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ext
test
.gitignore
README.rdoc
sash.gemspec

README.rdoc

Sash

Sash computes a 64bit hash using sdbm or djb2 hash function and outputs a compact string representation.

Example

require 'sash'
Sash.base64 "hi, this is sash - so how was your day ?" #=> "ixeLC8U8SC"
Sash.base64 "hi, this is sash - so how was your day ?", method: Sash::METHOD_DJB2) #=> "HI6K0nlcyH9"

License

CC BY-SA 3.0