Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

generate rsa key python

# download pycryptodome by running 'pip3 install pycryptodome'

from Crypto.PublicKey import RSA

private_key_obj = RSA.generate(2048) # this is an RSA key obj
pubkey_obj = private_key_obj.publickey() # this is an RSA key obj

private_key = private_key_obj.exportKey().decode("utf-8") # this is an RSA key string
pubkey = pubkey_obj.exportKey().decode("utf-8") # this is an RSA key string
 
PREVIOUS NEXT
Tagged: #generate #rsa #key #python
ADD COMMENT
Topic
Name
4+9 =