From: Phil Thompson Date: 2011-03-02T17:42:32+09:00 Subject: Re: htpasswd In fact, looking at webrick/httpauth/basicauth.rb it seems all you need is to use crypt. require 'webrick/utils' crypted_pass.crypt(WEBrick::Utils.random_string(2)) I have not yet tested this with Apache but I need the same thing for Nginx. -- Posted via http://www.ruby-forum.com/.