MCPcopy Create free account
hub / github.com/0xJs/RedTeaming_CheatSheet / pad

Function pad

coding/projects/Encoding_Encryption/AES/aesencrypt.py:10–11  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

8KEY = urandom(16)
9
10def pad(s):
11 return s + (AES.block_size - len(s) % AES.block_size) * chr(AES.block_size - len(s) % AES.block_size)
12
13def aesenc(plaintext, key):
14

Callers 15

encrypt_AESFunction · 0.85
encrypt_AESFunction · 0.85
encrypt_AESFunction · 0.85
encrypt_AESFunction · 0.85
encrypt_AESFunction · 0.85
encrypt_AESFunction · 0.85
encrypt_AESFunction · 0.85
encrypt_AESFunction · 0.85
encrypt_AESFunction · 0.85
encrypt_AESFunction · 0.85
encrypt_AESFunction · 0.85
encrypt_AESFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected