# File radius/packet.rb, line 464
    def to_s(secret)
      str = "RAD-Code = #{@code}\n"
      str += "RAD-Identifier = #{@identifier}\n"
      str += "RAD-Authenticator = #{[@authenticator].pack('m')}"
      each {
	|attr, val|
	if (attr == 'User-Password')
	    val = (secret == nil) ? "(hidden)" : password(secret)
	end
	str += "#{attr} = #{val}\n"
      }

      each_vsa {
	|vendorid, vsaname, val|
	str += "Vendor-Id: #{vendorid} -- #{vsaname} = #{val}\n"
      }
      return(str)
    end