Skip to main content

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)

Uploaded Source

Built Distribution

su.aes-0.1.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

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

Hashes for su.aes-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a53e3b643908ac49e11ee92374289744e7ae3be3d58dbc6d2d882190bed5a0ee
MD5 838873ad1d94350665656b5443b9b354
BLAKE2b-256 5e1735144621f603fc9e9580abea69834ecabcc2e9e8abd1dadabbeb4f9dbe00

See more details on using hashes here.

File details

Details for the file su.aes-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for su.aes-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b31dbafbad639759398e0b6af1763358f65c45258e5089293535560d7a0067d7
MD5 204be047f44ee7671ea559b51a984e78
BLAKE2b-256 90dc31b4cc4ae2c172db21d95b707ba7d20ef98681a99bff04081db571ce9037

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page