A simple encrypt/decrypt lib based on AES.
Project description
# su.aes
A simple encrypt/decrypt lib based on AES
### Dependencies
* Python 3.6 or later
### Install
```bash
$ pip3 install su.aes
```
### Usage
```python
from su.aes import encrypt, decrypt
input_text = "hogefuga"
secret_key = "my_sec_key"
# encrypt
encrypted = encrypt(secret_key, input_text)
decrypted = decrypt(secret_key, encrypted)
assert decrypted == input_text
```
### Console
```bash
# test for input string
$ su-aes INPUT_STR -t -p
# file test
$ su-aes INPUT_FILE_PATH -f -t -o OUTPUT_FILE_PATH
```
A simple encrypt/decrypt lib based on AES
### Dependencies
* Python 3.6 or later
### Install
```bash
$ pip3 install su.aes
```
### Usage
```python
from su.aes import encrypt, decrypt
input_text = "hogefuga"
secret_key = "my_sec_key"
# encrypt
encrypted = encrypt(secret_key, input_text)
decrypted = decrypt(secret_key, encrypted)
assert decrypted == input_text
```
### Console
```bash
# test for input string
$ su-aes INPUT_STR -t -p
# file test
$ su-aes INPUT_FILE_PATH -f -t -o OUTPUT_FILE_PATH
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
su.aes-0.1.2.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file su.aes-0.1.2.tar.gz
.
File metadata
- Download URL: su.aes-0.1.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 343719029be4ea91df1b0d8d1688dc9a076b4d141008459ec51c4b8284908736 |
|
MD5 | 105cde270ba4b68aeb738af56b91a75e |
|
BLAKE2b-256 | 5356fa1c6a6c0af4b7b53d9f24755f1bffedbf21ebef77dba8d323f24384faa1 |
File details
Details for the file su.aes-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: su.aes-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a64162f5c4964d5c6c3b48f0e5bb537369d3b7f89be2da81df31aa35d020ca8 |
|
MD5 | 5fe2f0330f5023188f020fc0bae01de8 |
|
BLAKE2b-256 | 0af9b3f4b35bead782a91650bcb75fc3715e1d71a813ca9b042c142643d9bb69 |