1

I've a client and a server and I want to send tuples of BigInteger objects between them, each time appending the binary representation of a tuple to an initially empty array.

This is done in order to implement a security protocol.

I've been searching for good ideas on how to send these BigInteger objects as tuples, so that these tuples are easy to send/receive and append to an array.

Could someone describe how to do this for a rather inexperienced programmer with an interest in cryptography (possibly with examples)?

Mureinik
  • 297,002
  • 52
  • 306
  • 350
Shuzheng
  • 11,288
  • 20
  • 88
  • 186

1 Answers1

0

Tuples does not exist in Java, you can create a Map<BigInteger, BigInteger> to simulate it or write your own class as described here

Community
  • 1
  • 1
Jordi Castilla
  • 26,609
  • 8
  • 70
  • 109