A simple module to upload file to an endpoint
❯ python .\file_upload.py -h
usage: file_upload.py [OPTIONS] [FILE]...
| from Crypto.Cipher import AES | |
| from Crypto import Random | |
| BS = 16 | |
| pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS) | |
| unpad = lambda s : s[0:-ord(s[-1])] | |
| class AESCipher: | |
| def __init__( self, key ): | |
| """ |
Raymond Hettinger's professional at doing code review and architecture review
P vs. NP. Pythonic vs. Non-Pythonic.