Skip to main content

crypto tool v2

encrypt files with aes-256-gcm or chacha20-poly1305. also does multi-layer.

wat it does

  • AES-256-GCM — nist aproved, fast on most cpus
  • ChaCha20-Poly1305 — good for mobiles and no aes-ni
  • Multi-Layer — multiple layers, each layer uses a diffrent key
  • PBKDF2 or Argon2id for key derivashun
  • RSA key gen and stuff (asymmetric)
  • HMAC integrety check on top

output

encrypted files are pure binary. no metadata, no json, no readable text. just bytes: 43 52 59 32 01 00 01 00 ...

instal

pip install cryptography argon2-cffi

usage

command line

# enc
python professional_crypto.py -e myfile.txt -o myfile.enc

# dec
python professional_crypto.py -d myfile.enc -o myfile_decrypted.txt

# use chacha20
python professional_crypto.py -e myfile.txt -a chacha20

# multi-layer (3 layers)
python professional_crypto.py -e myfile.txt -a multi-layer -l 3

# disable argon2 (use pbkdf2)
python professional_crypto.py -e myfile.txt --no-argon2

python api

from professional_crypto import Cryp

c = Cryp()

# enc
c.encrypt('myfile.txt', 'myfile.enc', 'password123',
          algo='aes-gcm', layers=1, use_argon=True)

# dec
c.decrypt('myfile.enc', 'myfile_decrypted.txt', 'password123')

# rsa
priv, pub = c.gen_rsa(4096)
c.save_rsa(priv, pub, 'keypassword', 'priv.pem', 'pub.pem')
p = c.load_priv('priv.pem', 'keypassword')

notes

  • password is asked twise for enc, once for dec (obviusly)
  • encrypted files are not backwards compatable (new format)
  • multi-layer uses more ram and time
  • use a strong password (12+ chars)

license

MIT

Metadata

Release files for encrypt-decrypt-pythons 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 encrypt-decrypt-pythons 2.0.0
File Size Uploaded Provenance Actions
encrypt_decrypt_pythons-2.0.0.tar.gz 6.7 kB Without provenance Details for encrypt_decrypt_pythons-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for encrypt-decrypt-pythons 2.0.0
File Interpreter ABI Platform Actions
encrypt_decrypt_pythons-2.0.0-py3-none-any.whl Python 3 none any Details for encrypt_decrypt_pythons-2.0.0-py3-none-any.whl

Total release size: 14.1 kB

Release files / encrypt_decrypt_pythons-2.0.0.tar.gz

Download URL encrypt_decrypt_pythons-2.0.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7f03822acbebb0cce7b0db00aae4d41cc6bad57723a5ffe6c2eab9583162f925
BLAKE2b-256 checksum
How to use checksums
838c65316614efc5b36cdc3d9328c24a933b507cd34db68b6e0fc282e25a61aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

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

Download URL encrypt_decrypt_pythons-2.0.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bac314aab1c14aaa6f98a1114d897a3d1d10d79d4ddaa25d6462fc6c10ca3bdc
BLAKE2b-256 checksum
How to use checksums
8fe3257346ba53296001eb9bf2bd8d82c7f5156e95311d49b97ac9433b0d7b8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for encrypt-decrypt-pythons 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files No provenance

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