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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycryptools-1.0.3.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

Hashes for pycryptools-1.0.3.tar.gz
Algorithm Hash digest
SHA256 48ee1755e126c68c175565cee6713b7c6dc15d6fd1f79a556e355b6ce85ed196
MD5 706a65190578c253aa40f87d2e654ba5
BLAKE2b-256 26b5432b929930c16b7b33e889e7be4715dba123a74337d9e63b340fc241ebf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyCrypTools-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6a32967a11a1be195963c36b72337189b576aa5251de0e1ab8ed6c33f5454d76
MD5 d5f3d57117a1d1ecfcf00b4a9eecbcae
BLAKE2b-256 38f085efa7d3550101581b1615ea5a044302090356f2778380a2f76ae98dd88b

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