Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python generate rsa key pair

# download pycryptodome by running 'pip3 install pycryptodome'

from Crypto.PublicKey import RSA

private_key = RSA.generate(2048)
pubkey = private_key.publickey()

private_key = private_key.exportKey().decode("utf-8")
pubkey = pubkey.exportKey().decode("utf-8")
 
PREVIOUS NEXT
Tagged: #python #generate #rsa #key #pair
ADD COMMENT
Topic
Name
4+6 =