Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kelhusseiny
Created April 20, 2012 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelhusseiny/2426044 to your computer and use it in GitHub Desktop.
Save kelhusseiny/2426044 to your computer and use it in GitHub Desktop.
salt= Digest::SHA1.hexdigest("# We add {email} as unique value and #{Time.now} as random value")
encrypted_password= Digest::SHA1.hexdigest("Adding #{salt} to {password}")
@CamilleHbp
Copy link

@Azzurrio Shouldn't that be

salt= Digest::SHA1.hexdigest("We add #{email} as unique value and #{Time.now} as random value")
encrypted_password= Digest::SHA1.hexdigest("Adding #{salt} to #{password}")

?

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