Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

FrostHard Apr 9th, 2020 142 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def StoreKeys():
  2.     username = os.getlogin()
  3.     private_key = RSA.generate(1024)
  4.     public_key = private_key.publickey()
  5.     private_pem = private_key.export_key().decode()
  6.     public_pem = public_key.export_key().decode()
  7.     with open(f'C:\\Users\\{username}\\Desktop\\private_key.pem', 'w') as pr:
  8.         pr.write(private_pem)
  9.     with open(f'C:\\Users\\{username}\\Desktop\\public_key.pem', 'w') as pu:
  10.         pu.write(public_pem)
  11.     path = os.getcwd()
  12.     pesan = "Your Keys Generated In " + f'C:\\Users\\{username}\\Desktop\\'
  13.     messagebox.showinfo("File", pesan)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top