To start, first create a directory
mkdir directory_name
import rsa | |
import base64 | |
import binascii | |
def load_puk(name_file): | |
name_file = name_file + '.pem' | |
with open(name_file, 'rb') as file: | |
PublicKey = file.read() | |
puk = rsa.PublicKey.load_pkcs1_openssl_pem(PublicKey) | |
return puk |
# Variables | |
test = u'Hola a todo el mundo' # Enter a phrase | |
lenght = 10 # Enter a number | |
test_list = test.split() | |
i = len(test_list) | |
while i<=len(test_list): | |
phrase = " ".join(list[0:i]) | |
if len(phrase)<lenght: |