Skip to main content

A simple cryptography tools library for Python.

Project description

PyCrypTools

Downloads Version Python Version

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


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.0.tar.gz (462.8 kB view details)

Uploaded Source

Built Distribution

PyCrypTools-1.0.0-py3-none-any.whl (463.2 kB view details)

Uploaded Python 3

File details

Details for the file pycryptools-1.0.0.tar.gz.

File metadata

  • Download URL: pycryptools-1.0.0.tar.gz
  • Upload date:
  • Size: 462.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.2

File hashes

Hashes for pycryptools-1.0.0.tar.gz
Algorithm Hash digest
SHA256 052d11552f6b92c332ba9c64ba9a4a431c836222c8a6899e3ccecce8d7517b37
MD5 da4d3cc39c67e786526d40f26834353f
BLAKE2b-256 ad28ef5ea90538c52a60389f77493374f4c46c04c8c6971dadbdd5f7dbd4fc75

See more details on using hashes here.

File details

Details for the file PyCrypTools-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: PyCrypTools-1.0.0-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

Hashes for PyCrypTools-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccf1f20c080910b5f15d1db8073374aa324b94d51427b1d646da6434ada98090
MD5 9839e402a4df93681293b45d1cd5f2bd
BLAKE2b-256 669d5b98327088ba9acb19beb244fa9656324715b4e5d1338b6ce614a248fd64

See more details on using hashes here.

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