From: yu.ching.tien@... Date: 2008-09-21T00:52:05+09:00 Subject: Re: how to manage passwords On 19 set, 18:55, Junkone wrote: > many of my ruby apps have the password hard coded. i am looking for a > way so that i can control the password not to be stored as text file. > what are the ruby options that are available. could use String#crypt mypassword = "visible_to_everyone" hash = mypassword.crypt(mypassword) "some_other_password".crypt(hash) == hash >> false mypassword.crypt(hash) == hash) >> true