Skip to content

Instantly share code, notes, and snippets.

View Bashorun97's full-sized avatar
🏠
Working from home

Bash Bashorun97

🏠
Working from home
  • Lagos, Nigeria
View GitHub Profile
@Bashorun97
Bashorun97 / encrypt_decrypt.py
Created September 14, 2022 17:32
AES encryption and decryption
import base64
import hashlib
import hmac
from Crypto import Random
from Crypto.Cipher import AES
class EncryptDecrypt:
def __init__(self, encryption_key):