PyCrypt is a small python utility for encrypting and decrypting AES.
- Python (2.7)
- pycrypto - PyPI
python encrypt.py [-h] key msg
Argument | Explenation |
---|---|
key | The encryption key to encrypt the message with |
msg | The message to encrypt |
python decrypt.py [-h] key msg
Argument | Explenation |
---|---|
key | The encryption key to decrypt the message with |
msg | The encrypted message to decrypt |
> python encrypt.py secret "Hello World\!"
9729c82afb07bcddd67b8d54b1efe13237d0c71edc96b7ceeae390c2b3
> python decrypt.py secret 9729c82afb07bcddd67b8d54b1efe13237d0c71edc96b7ceeae390c2b3
Hello World\!
(Notice the back-slash before the exclamation mark, this is to escape it, as it otherwise has special meaning in bash)