Skip to main content

Cryptgraphy

A downloadable collection of scenario-based Cybersecurity practical Python scripts transcribed from the supplied Scenario Based CIS PDF.

Install

PyPI distribution name: cryptgraph. The installed command remains cryptgraph.

pip install cryptgraph

Commands

cryptgraph list
cryptgraph list --category cloud-security
cryptgraph download confidentiality
cryptgraph download secure-communication
cryptgraph download cloud-security
cryptgraph download all

A single-script download writes a .py file to the current directory. Category downloads create a folder containing that category's scripts. all downloads the complete collection.

Use -o to choose a destination:

cryptgraph download confidentiality -o confidentiality.py
cryptgraph download all -o my_cyber_practicals

Categories

  • CIA: confidentiality, integrity, availability, authentication/accountability, non-repudiation
  • OS Security: authentication/permissions, firewall logs, memory management, buffer overflow
  • Secure Communication: RSA key generation, sender, receiver
  • Database Security: SQL injection prevention, role-based access control
  • Network Security: replay attack prevention
  • Cloud Security: time-limited links, zero-trust client encryption, invisible watermarking
  • IoT Security: packet sniffing, AES encryption
  • Security Practices: HMAC verification, port scanning/banner checks

Dependencies

The downloaded scripts use the dependencies required by their original examples:

pip install cryptography
pip install pycryptodome
pip install scapy

Most other examples use only the Python standard library. Install only the dependency required by the practical you want to run.

Important notes

  • The script logic, identifiers, statements, and printed messages are retained from the PDF; indentation was normalized where needed so the Python files parse.
  • These are educational demonstrations, not production-ready security systems. Some examples use hard-coded demo credentials or keys and simplified cryptographic concepts.
  • The RSA sender/receiver example imports generated keys from generate_keys.py; because that module generates fresh in-memory keys when imported in a new process, running the scripts as separate processes does not provide persistent matching keys without additional key-persistence work. The original example has been retained as requested.
  • Packet sniffing is intended only for networks and devices you own or are explicitly authorized to inspect. On Windows, Scapy may require Npcap and elevated permissions.
  • The port-scanning example should only be run against systems you own or have explicit permission to test.

Build locally

python -m pip install --upgrade build
python -m build

Metadata

Release files for cryptgraph 0.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 cryptgraph 0.1.0
File Size Uploaded Provenance Actions
cryptgraph-0.1.0.tar.gz 11.8 kB Without provenance Details for cryptgraph-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 31.0 kB

Release files / cryptgraph-0.1.0.tar.gz

Download URL cryptgraph-0.1.0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
064e250a4158930e177defe70164c3c433af21a55c55514b564b7c29dc0b5f6c
BLAKE2b-256 checksum
How to use checksums
1c9191347157856b8e6fdeed07a35c572aa1ada8321b52bb01a855bc568a47fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Release files / cryptgraph-0.1.0-py3-none-any.whl

Download URL cryptgraph-0.1.0-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c66d169fc486ca18a7c8dac78a30292392eea50325aa3540725932058d5afdec
BLAKE2b-256 checksum
How to use checksums
e8b49053285ec8d07fddb20b5bc2c1465315b3eb66e6c64eb54eecf5653febec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Security for cryptgraph 0.1.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

0.1.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