Познакомьтесь с пентестом веб-приложений на практике в нашем новом бесплатном курсе
s = 'A' * 100
print s
print len(s)
num = raw_input('Enter: ')
print num[0]
print num[1]
print num[2]
pycryptodome
pip install pycryptodome
from Crypto.PublicKey import RSA
code = 'nooneknows'
key = RSA.generate(2048)
encrypted_key = key.exportKey(
passphrase=code,
pkcs=8,
protection="scryptAndAES128-CBC"
)
with open('my_private_rsa_key.bin', 'wb') as f:
f.write(encrypted_key)
with open('my_rsa_public.pem', 'wb') as f:
f.write(key.publickey().exportKey())
os.walk()
...Server.