A simple cryptography tools library for Python.
Project description
PyCrypTools
PyCrypTools is a library that provides various cryptography tools for Python. It provides functionalities to verify and sign files, as well as encrypt and decrypt files using AES in CBC mode.
Set up
Install
pip install pycryptools
Upgrade
pip install --upgrade pycryptools
Support
If you want to contact me for questions, bugs, or problems or other : lixnew2@gmail.com
Python version
PyCrypTools was written for python 3.
Functions
Checks whether a file is digitally signed
is_signed()
# You can use the "infos" parameter to retrieve all the signature information of the file.
# By default, the parameter is set to false and the function returns true or false if the file is signed.
args = file_path, infos
Allows you to digitally sign a file
sign_file()
# The "encryption_algorithm" parameter is set by default to the "SHA256" algorithm.
# If you wish, you can change it to another hashing/encryption algorithm.
args = file_path, certificate_path, certificate_pdw, encryption_algorithm
Encrypts a file
encrypt_file()
# The password must be 16, 24, or 32 bytes long. (1 character = 1 byte)
args = file_path, password
Decrypts a file
decrypt_file()
# To decrypt the ".enc" file, you must use the same password as during encryption.
# WARNING: If the password entered to decrypt the file is incorrect, the data in your file will be altered and it will be permanently unreadable.
args = file_path, password
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycryptools-1.0.2.tar.gz
(462.7 kB
view details)
Built Distribution
PyCrypTools-1.0.2-py3-none-any.whl
(463.2 kB
view details)
File details
Details for the file pycryptools-1.0.2.tar.gz
.
File metadata
- Download URL: pycryptools-1.0.2.tar.gz
- Upload date:
- Size: 462.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 270c6c0063e7dbe3089f9815e0a119bf195e679af69638cd83554d61fd2f78ec |
|
MD5 | 90aa5eb3fea309419b4f96e2c6109525 |
|
BLAKE2b-256 | c15d9cff2a6518a98fd40a955fcfd980957ce950fdbd9722e91e60629e08e41c |
File details
Details for the file PyCrypTools-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: PyCrypTools-1.0.2-py3-none-any.whl
- Upload date:
- Size: 463.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a7506be385973347e9877d51a914c377515944f29036f9809a8962910f11713 |
|
MD5 | 79489497a8628db3a83bc89cb330d401 |
|
BLAKE2b-256 | 0a42bb9e78babf891390da70e4f7749a890c73734549a437f0fabd9aa3886b46 |