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