Skip to main content

pyaescbc

Description

AES-CBC encryption tools based on crytography package !

The package pyaescbc provides functions to encrypt and decrypt data using the AES-CBC encryption mode. The package is written in Python and uses the cryptography library for the AES encryption and decryption. The package also provides functions to create an HMAC value from the derived key, IV, and ciphertext. The package is designed to be easy to use.

Security considerations

Usage

General usage of the package includes:

import pyaescbc

# Encryption
cleardata = bytearray("Hello, World!", 'utf-8')
password = bytearray("password", 'utf-8')
iterations = 2_000_000
authdata = bytearray("user=toto", 'utf-8') # Optional authentication data (can be None)
encrypted_bundle = pyaescbc.encrypt(cleardata, password, iterations=iterations, authdata=authdata, delete_keys=True, delete_data=True)

# Decryption
password = bytearray("password", 'utf-8')
authdata = bytearray("user=toto", 'utf-8') # Optional authentication data (can be None)
decrypted_data = pyaescbc.decrypt(encrypted_bundle, password, authdata=authdata, delete_keys=True)

print(decrypted_data)

Encryption Process

Decryption Process

Authors

Installation

Install with pip

pip install pyaescbc
pip install git+https://github.com/Artezaru/pyaescbc.git

Clone with git

git clone https://github.com/Artezaru/pyaescbc.git

License

Copyright 2025 Artezaru

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Release files for pyaescbc 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyaescbc 2.0.0
File Size Uploaded
pyaescbc-2.0.0.tar.gz 268.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyaescbc 2.0.0
File Interpreter ABI Platform
pyaescbc-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 540.4 kB

Release files / pyaescbc-2.0.0.tar.gz

Download URL pyaescbc-2.0.0.tar.gz
Size 268.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5d24304c26d0897358b7f710822f2c446af901fccc7c8b5e8114273185c93db3
BLAKE2b-256 checksum
How to use checksums
c0f9f4666e0d1a07f43562902f7d38fcb974b1a17024b9a996886b7152ff2a8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21

Release files / pyaescbc-2.0.0-py3-none-any.whl

Download URL pyaescbc-2.0.0-py3-none-any.whl
Size 272.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
077397658e6364c3603f6f27a517024a426aca0e6f27b47d134b66cf2a034a92
BLAKE2b-256 checksum
How to use checksums
40a915570edd8f2b33766f05ea14db9283bc253f47c5cda5c01e095bb49bbb55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21

Release history Release notifications | RSS feed

2.1.0

2 release files

This release

2.0.0 This release

2 release files

1.0.0

2 release files

0.1.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page