You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
454 B
9 lines
454 B
import base64
|
|
|
|
private_key_hex = "308187020100301306072a8648ce3d020106082a8648ce3d030107046d306b0201010420ac868a9588a69ec9626db857caae42b0d654288abf73b0d8f1a6b43fff093508a1440342000466da453c1e793d7e21ab63b334e80f96715aa97e578639b5fe8092f8752fa6e1f9182324846c70bf1a3480411ba787e652be8049a36a14294681f745c4c4c4f7"
|
|
|
|
private_key_der = bytes.fromhex(private_key_hex)
|
|
|
|
private_key_base64 = base64.b64encode(private_key_der).decode()
|
|
|
|
print(private_key_base64)
|
|
|