Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
compact string hash
C Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

Something went wrong with that request. Please try again.