Multiple encryption library
Project description
py-aesrepeat
To install
pip install aesrepeat
Short Description (Japanese)
Sample code
from aesrepeat import *
text = "Pythonの暗号化ライブラリとそれらの概要を表にまとめました。非常にたくさんのライブラリがあることがわかりました。それぞれのライブラリが得手不得手を持っているためユースケースに応じて適切なライブラリを使用する必要があります。"
bytes = text.encode()
ar = AES128(["aa", "bb"])
print("")
encoded = ar.encode_text(text)
print(encoded)
decoded = ar.decode_text(encoded)
print(decoded)
print("")
encoded = ar.encode_bytes(bytes)
print(encoded)
decoded = ar.decode_bytes(encoded)
print(decoded.decode())
print("")
list = [11, 22, 33]
encoded = ar.encode_pickle(list)
print(encoded)
decoded = ar.decode_pickle(encoded)
print(decoded)
ar = AES256(["aa", "bb"])
print("")
encoded = ar.encode_text(text)
print(encoded)
decoded = ar.decode_text(encoded)
print(decoded)
print("")
encoded = ar.encode_bytes(bytes)
print(encoded)
decoded = ar.decode_bytes(encoded)
print(decoded.decode())
print("")
list = [11, 22, 33]
encoded = ar.encode_pickle(list)
print(encoded)
decoded = ar.decode_pickle(encoded)
print(decoded)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file aesrepeat-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: aesrepeat-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 489459d75e6351f1ca459df5ae62a93b90393b97a795d0bfcb7ecd49fed6039d |
|
MD5 | f92e89e44e89c357c6cf3ea69a7e01da |
|
BLAKE2b-256 | ae25beed8de4014aa0e0e4f7fc3346b77cc921a3ad92f2260fd633aaa27d3227 |