Skip to content

Instantly share code, notes, and snippets.

View ebarojas's full-sized avatar
🔭

Everardo J. Barojas M. ebarojas

🔭
View GitHub Profile
from Crypto.PublicKey import RSA # nosec B413
from Crypto.Hash import SHA256 # nosec B413
# Read FIEL.cer
def read_fiel_cer(directory_file):
try:
public_key = None
with open(directory_file + '.cer', 'rb') as f:
public_key = RSA.import_key(f.read())
except Exception as e: