Skip to content

Instantly share code, notes, and snippets.

@camwest
Created April 13, 2010 14:26
Show Gist options
  • Save camwest/364689 to your computer and use it in GitHub Desktop.
Save camwest/364689 to your computer and use it in GitHub Desktop.
PASSWORD = lambda { |login|
Digest::SHA1.hexdigest("--#{Time.now.to_s}--#{login}--")[0,8]
}
PASSWORD.call("username")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment