/RSA-keys-DER-encoding

Get RSA keys and their DER decoded equivalent

Primary LanguagePythonMIT LicenseMIT

RSA-keys-DER-encoding

Description

Get RSA keys and their DER decoded equivalent

Output

C:\Python310\python.exe C:\main.py 
Private key : b'0\x82\x04\xbc\x02\x01\x000\r\x06\t*\x86H\x86 [...]
Private key (hex) : 308204bc020100300d06092a864886f70d0101010500048204a6308204 [...]
Public key : b'0\x82\x01"0\r\x06\t*\x86H\x86\xf7\r\x01\x0 [...]
Public key (hex) : 30820122300d06092a864886f70d01010105000382010f003082010a02 [...]

Process finished with exit code 0

Behaviour

Key are stored in PEM format file.

Required libraries

pip install cryptography