Diffie-Hellman Random Value

View as MarkdownOpen in Claude

The Diffie-Hellman random value is simply any positive random 256-bit integer value.

This will be used immediately for the Diffie-Hellman challenge as well as the computation of the live session token.

1dh_random = str(random.getrandbits(256))