DH Private and Public Key Pair Example

Q

Where can I find an example of DH (Diffie-Hellman) private and public key pair example?

✍: FYIcenter.com

A

Here is good example example of DH (Diffie-Hellman) private and public key pair.

The DH private key in PEM format:

-----BEGIN PRIVATE KEY-----
MIIBIQIBADCBlQYJKoZIhvcNAQMBMIGHAoGBALzizRYfhhdc1miJMXG88tKCCdLO
SIG7G2Fsh27ec41AP+pExiT781P/JjnLmy85Niy9OhTZDkiSnAqNiWO+DC/3elIK
jHfxQgBMMd+57MCduH9MEOVEQKb/drJkPFeCBShJlM+KyoNCpLfV0Tu/icb/KTQA
UdiQA0cehBtTNmwzAgECBIGDAoGAUa07TyiiLwrxgGzHILAhww+D3OPQBjr3nUxP
r4wslGf/ZxkgCLMfcgQnBzMts2I18n5Yj5HMksGx9iL4wfbpS4KjgG216MqSk81D
OIQ9DF86VsuaYSvRA2gVktxf9gPnnC9VsThcuEuMKRS1csBNVSEjAbS7KS7RWrt4
mcoqa20=
-----END PRIVATE KEY-----

Click here to see the decoded version:

The matching DH public key in PEM format:

-----BEGIN PUBLIC KEY-----
MIIBHzCBlQYJKoZIhvcNAQMBMIGHAoGBALzizRYfhhdc1miJMXG88tKCCdLOSIG7
G2Fsh27ec41AP+pExiT781P/JjnLmy85Niy9OhTZDkiSnAqNiWO+DC/3elIKjHfx
QgBMMd+57MCduH9MEOVEQKb/drJkPFeCBShJlM+KyoNCpLfV0Tu/icb/KTQAUdiQ
A0cehBtTNmwzAgECA4GEAAKBgCoDjDV/cvxDi0PC9h8iiqD+i5gzQNnoe3jd77RK
HW2pZ39jDvYEGtfgWsg8TAw2vyNCKZcxP3ho2BRMF4X7J7PTwijMFMHQbcGzyY1R
WmcCO4UfkRYVN65NtiA3zmu7hBaiIYF4VgpoFcOlUcsUlNceaRS6zc5ua0GGNMpA
DThf
-----END PUBLIC KEY-----

Click here to see the decoded version:

2019-01-13, 339👍, 0💬