aboutsummaryrefslogtreecommitdiff
path: root/flags/make-keys.rsa
blob: e6fba642d0ad37dd329285ae626b66ec0ca192a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python

from Crypto.PublicKey import RSA
import pickle

keys = {}
keys['Alice'] = RSA.generate(1024)
keys['Bob'] = RSA.generate(1024).publickey()

with open('rsa.keys', 'w') as f:
	pickle.dump(keys, f)