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.3.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file su.aes-0.1.3.tar.gz
.
File metadata
- Download URL: su.aes-0.1.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a53e3b643908ac49e11ee92374289744e7ae3be3d58dbc6d2d882190bed5a0ee |
|
MD5 | 838873ad1d94350665656b5443b9b354 |
|
BLAKE2b-256 | 5e1735144621f603fc9e9580abea69834ecabcc2e9e8abd1dadabbeb4f9dbe00 |
File details
Details for the file su.aes-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: su.aes-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b31dbafbad639759398e0b6af1763358f65c45258e5089293535560d7a0067d7 |
|
MD5 | 204be047f44ee7671ea559b51a984e78 |
|
BLAKE2b-256 | 90dc31b4cc4ae2c172db21d95b707ba7d20ef98681a99bff04081db571ce9037 |