def hide_password(hsh)
      hsh.each do |k, v|
        if v.is_a?(Hash)
          hsh[k] = hide_password(v)
        elsif k == "password"
          hsh[k] = "****"
        end
      end
      hsh
    end
def hide_password(hsh)
      hsh.each do |k, v|
        if v.is_a?(Hash)
          hsh[k] = hide_password(v)
        elsif k == "password"
          hsh[k] = "****"
        end
      end
      hsh
    end
Hide any sensitive value, replacing it with "*" characters.