Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
require 'digest/sha1'
encrypted_password= Digest::SHA1.hexdigest(password)

I'm following your post on sitepoint for user authentication. You didn't mention where to put password_hashing.rb.


hi, i thing this file goes into db, with schema.rb and seed.rb (not 100% sure but its something)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.