I've just made my own implementation of Diffie Hellman in nodejs (its for a project of mine). However the shared keys are integers, I want to use those integers as a key to encrypt data. This is an example output:
Publicly Shared Variables: Publicly Shared Prime: 9811 Publicly Shared Base: 844 Private Variables: Alice Secret: 6 Bob Secret: 15 Alice Sends Over Public Chanel: 905 Bob Sends Over Public Chanel: 1168 ------------ Privately Calculated Shared Secret: Alice Shared Secret: 3793 Bob Shared Secret: 3793
What would be the best encryption method, using the key of those integers. Sorry this is a bit hard to explain. Thanks alot!