A simple encrypt/decrypt lib based on AES.
Project description
A simple encrypt/decrypt lib based on AES.
Dependencies
Python 3.6 or later
Install
$ pip3 install su.aes
Usage
from su.aes import encrypt, decrypt
input_text = "nihao"
secret_key = "my_sec_key"
encrypted = encrypt(secret_key, input_text)
decrypted = decrypt(secret_key, encrypted)
assert decrypted == input_text
Console
# 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.4.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file su.aes-0.1.4.tar.gz
.
File metadata
- Download URL: su.aes-0.1.4.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdc58c2dbef69e0ca4ff63e20e3f3186995dddda5d0ffad9a2dbd79d6adca4bc |
|
MD5 | 14cb3b83f163d84456af5a0d8887bd1d |
|
BLAKE2b-256 | 3a95ae3b0b1d6730edca4bac2d6957921366d99a1af0685ea085e2d8ddbee8ae |
File details
Details for the file su.aes-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: su.aes-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c2b941ae539285c1eac64e657ffd116908cf31f27e277ea3046d3e56c2bb0c7 |
|
MD5 | ec5fec7a213e4d3dfbec1b6b61a6dbcf |
|
BLAKE2b-256 | cf16bd9e3672892e4b5e84654d047ba4c18bbbbc601d28dfdc53d42e99385f3c |