Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
require 'digest/sha1'
encrypted_password= Digest::SHA1.hexdigest(password)
@pruzoth

This comment has been minimized.

Show comment Hide comment
@pruzoth

pruzoth Aug 19, 2014

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

pruzoth commented Aug 19, 2014

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

@Cris245

This comment has been minimized.

Show comment Hide comment
@Cris245

Cris245 May 27, 2015

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

Cris245 commented May 27, 2015

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

@kunokdev

This comment has been minimized.

Show comment Hide comment
@kunokdev

kunokdev Jan 8, 2016

I too have same problem as pruzoth, where should I save this file?

kunokdev commented Jan 8, 2016

I too have same problem as pruzoth, where should I save this file?

@ramkrishna67

This comment has been minimized.

Show comment Hide comment
@ramkrishna67

ramkrishna67 Jul 29, 2016

You need to include it in Gemfile

You need to include it in Gemfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment