<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: password code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 07 Sep 2008 08:01:37 GMT</pubDate>
    <description>DZone Snippets: password code</description>
    <item>
      <title>Generate random password in ruby </title>
      <link>http://snippets.dzone.com/posts/show/3632</link>
      <description>Aaron Blohowiak suggests adding this as a public method in user.rb:&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;def new_random_password&lt;br /&gt;  self.password= Digest::SHA1.hexdigest("--#{Time.now.to_s}--#{login}--")[0,6]&lt;br /&gt;  self.password_confirmation = self.password&lt;br /&gt;end&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 06 Mar 2007 08:51:55 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3632</guid>
      <author>Mickael (Mickael)</author>
    </item>
  </channel>
</rss>
