[go: nahoru, domu]

Skip to content

Commit

Permalink
Create public_key.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alien-keric committed Feb 19, 2024
1 parent 9d8ab98 commit 72b3e44
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions public_key.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#cracking public key components from a id_rsa.pub
#Author alienX
#!/bin/python3

from Crypto.PublicKey import RSA
f = open("id_rsa.pub", "r")
key = RSA.importKey(f.read())
print(key.n)
print(key.e)

0 comments on commit 72b3e44

Please sign in to comment.