Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View password_hashing.rb
1 2
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.

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.