Skip to content

Instantly share code, notes, and snippets.

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

Emmanuel Ogoma ogomaemmanuel

🏠
Working from home
View GitHub Profile
@ogomaemmanuel
ogomaemmanuel / aes_encryption.py
Created October 16, 2024 11:42 — forked from tmarthal/aes_encryption.py
PyCrypto AES256 Encoding with Initialization Vectors Matching Spring Security
class AesCrypt256:
#Based on https://gist.github.com/pfote/5099161
BLOCK_SIZE = 16
# To use the null/x00 byte array for the IV
default_initialization_vector = False
def __init__(self, default_initialization_vector=False):
self.default_initialization_vector = default_initialization_vector
@ogomaemmanuel
ogomaemmanuel / local
Created May 8, 2021 10:31 — forked from archf/local
ansible variables group_names and group_names from hostvars have different content when printed
[foo]
localhost ansible_host=localhost ansible_connection=local