Skip to content

Instantly share code, notes, and snippets.

@kelhusseiny
Created April 20, 2012 04:39
Show Gist options
  • Save kelhusseiny/2426043 to your computer and use it in GitHub Desktop.
Save kelhusseiny/2426043 to your computer and use it in GitHub Desktop.
require 'digest/sha1'
encrypted_password= Digest::SHA1.hexdigest(password)
@ramkrishna67
Copy link

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