# File lib_core/rucy/passwd.rb, line 17 def crypt(password, salt=self.salt) if (salt.length < SALT_LEN) then raise 'mismatch salt length.' end salt = salt[0, SALT_LEN] salt + Digest::MD5.hexdigest(salt + password) end