Skip to main content

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

aesrepeat-0.0.1-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

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