Sha256: b638a6633ec85f517437e6d8ee36a1cde202082e0597be974f5a12218da77881

Contents?: true

Size: 1.21 KB

Versions: 48

Compression:

Stored size: 1.21 KB

Contents

# Trisul Remote Protocol TRP Demo script
require 'rubygems'
require './helper'
include TrisulRP::Protocol
include TrisulRP::Keys
include TrisulRP::Utils

class TestTrisulrp < Test::Unit::TestCase

  def test_keys
    print "0A.01.3C.BB = " 
	print TrisulRP::Keys::make_readable( "0A.01.3C.BB" )
	print  "\n"

	print "10.1.60.187 = " 
	print TrisulRP::Keys::make_key( "10.1.60.187" )
	print  "\n"

	print "p-01BB = "
	print TrisulRP::Keys::make_readable( "p-01BB" )
	print  "\n"

	print "Port-443 =  " 
	print TrisulRP::Keys::make_key( "Port-443" )
	print  "\n"

  end


  def test_resolved

    conn = TrisulRP::Protocol.connect("127.0.0.1", 12001,"Demo_Client.crt","Demo_Client.key")


    print "www.wireshark.org  = " 
	print TrisulRP::Utils::mk_trisul_key( conn, TrisulRP::Guids::CG_HOST, "www.wireshark.org"  )
	print  "\n"


	print "80.79.32.7A = " 
	print TrisulRP::Keys::make_readable( "80.79.32.7A" )
	ip = TrisulRP::Keys::make_readable("128.121.50.122" )
	print  "\n"

	print "128.121.50.122 = "
	print TrisulRP::Keys::make_key("128.121.50.122" )
	print  "\n"


	# back to ip 
	print "from ip to key "
    print "#{ip}   = " 
	print TrisulRP::Utils::mk_trisul_key( conn, TrisulRP::Guids::CG_HOST, ip  )
	print  "\n"
	

  end


end


Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
trisulrp-3.2.43 test/test_key.rb
trisulrp-3.2.42 test/test_key.rb
trisulrp-3.2.41 test/test_key.rb
trisulrp-3.2.40 test/test_key.rb
trisulrp-3.2.39 test/test_key.rb
trisulrp-3.2.38 test/test_key.rb
trisulrp-3.2.37 test/test_key.rb
trisulrp-3.2.36 test/test_key.rb
trisulrp-3.2.35 test/test_key.rb
trisulrp-3.2.34 test/test_key.rb
trisulrp-3.2.32 test/test_key.rb
trisulrp-3.2.31 test/test_key.rb
trisulrp-3.2.27 test/test_key.rb
trisulrp-3.2.26 test/test_key.rb
trisulrp-3.2.16 test/test_key.rb
trisulrp-3.2.15 test/test_key.rb
trisulrp-3.2.14 test/test_key.rb
trisulrp-3.2.13 test/test_key.rb
trisulrp-3.2.9 test/test_key.rb
trisulrp-3.2.8 test/test_key.rb