When I generated a diffie-hellman prime number using openssl, the output file had some weird characters at the end and I wanted to understand what it means.
Background info:
My goal was to generate a safe prime number for use with Diffie-Hellman which is at least 500 bits long, and compatible with generator 5.
These are the terminal commands I used:
mymacbookname myname$ openssl dhparam -out dh512.der 512 -5 -outform DER -text
Generating DH parameters, 512 bit long safe prime, generator 5
This is going to take a long time
.......................+.+..+..........+............+........+................+....................+................................+.+...............................................................+......+.......+.............................+........+............................+............+..................+................+..........+..............+........................................+.....+............................................+.............+......+...........+....+..........................................+.........................................................+..........................+.................................+................+...+............+...+....................+................+....+...+.+.....................+......................+..............+..................++*++*++*++*++*++*
mymacbookname myname$
I renamed the file "dh512.der" to "dh512.der.txt" and this is what was in the text file: (This is for a class project and will not be used in any important key-exchange.)
Diffie-Hellman-Parameters: (512 bit)
prime:
00:9f:71:b9:ea:51:1e:95:d2:9a:66:65:bd:d2:a1:
31:bd:6d:58:0d:59:06:c4:43:e2:53:34:03:f9:5b:
c7:4e:48:1e:b0:1f:2c:7f:16:ff:1d:47:26:7d:4d:
14:63:42:cf:ba:42:ee:06:83:6d:e6:f9:f0:6a:5a:
fb:ca:66:da:87
generator: 5 (0x5) 0FAüqπÍQï“öfeΩ“°1ΩmX YƒC‚S4˘[«NH∞,ˇG&}McBœ∫BÓÉmÊ˘jZ˚ f⁄á
I'm pretty sure that
00:9f:71:b9:ea:51:1e:95:d2:9a:66:65:bd:d2:a1:
31:bd:6d:58:0d:59:06:c4:43:e2:53:34:03:f9:5b:
c7:4e:48:1e:b0:1f:2c:7f:16:ff:1d:47:26:7d:4d:
14:63:42:cf:ba:42:ee:06:83:6d:e6:f9:f0:6a:5a:
fb:ca:66:da:87
is the prime number I am seeking in hex format separated by :
's. But I am just curious about this part:
0FAüqπÍQï“öfeΩ“°1ΩmX YƒC‚S4˘[«NH∞,ˇG&}McBœ∫BÓÉmÊ˘jZ˚ f⁄á
What is that there for? What does it mean? I looked at the manual page http://ift.tt/1yy5WCc and it has no description of what the output files will contain.
Thanks!
Aucun commentaire:
Enregistrer un commentaire