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.1.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.1.0
File Size Uploaded
pyaescbc-2.1.0.tar.gz 268.4 kB Details

Built distribution (wheel)

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

Total release size: 540.4 kB

Release files / pyaescbc-2.1.0.tar.gz

Download URL pyaescbc-2.1.0.tar.gz
Size 268.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2acb7205aad0a64559893bcfd855be6a1a58031831e57455fc14be01ac98d022
BLAKE2b-256 checksum
How to use checksums
403023a8ed08ae563808b8f48490f1dc25bc9154f7815e97668cdd502525d0f4
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.1.0-py3-none-any.whl

Download URL pyaescbc-2.1.0-py3-none-any.whl
Size 272.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e24da6ce50ccf47c6219b3ace290d54e08cfe34542bf94cec55b20893e4f304
BLAKE2b-256 checksum
How to use checksums
14113b3c1cf73f241a22b4f30bd71cc4abe1ea1a381ee1b4675c02b339020da3
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

This release

2.1.0 This release

2 release files

2.0.0

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