cryptofoc
Foundation of Cryptography Lab — print the full writeup (aim, theory, algorithm, ASCII block diagram, ASCII flowchart, C++ code, sample output, applications, conclusion) for all 10 experiments, right on the terminal.
Install
pip install cryptofoc
API
import cryptofoc
cryptofoc.p1() # print experiment 1
cryptofoc.p2() # ... and so on up to p10()
cryptofoc.show(4) # print experiment 4 by number
cryptofoc.all() # print all 10 experiments in order
cryptofoc.list() # list all 10 experiment titles
# Class form also works:
from cryptofoc import Cryptofoc
Cryptofoc.p1()
Cryptofoc.all()
Note: cryptofoc.1() is not valid Python — an attribute name may not start
with a digit — so the numbered experiments are p1() ... p10().
The 10 experiments
- Programs Based on Computational Number Theory: Factorial, Fibonacci, Golden Ratio, Prime Numbers, Palindrome Series and Pattern
- Implementation of the Extended Euclidean Algorithm
- Implementation of the Diffie-Hellman Key Exchange Algorithm
- Implementation of Simplified Data Encryption Standard (S-DES)
- Implementation of Simplified Advanced Encryption Standard (S-AES)
- Implementation of RSA Algorithm for Key Generation and Cipher Verification
- Generation and Use of Digital Signature for a Real-World Situation
- Implementation of SHA-1 Algorithm Using Library (API) — Windows-only (Windows CryptoAPI)
- Identifying Software Vulnerabilities Using a Tool (Flawfinder) and Their Analysis
- Socket Programming: Creating a Server and Client and Testing Connectivity — Windows-only (Winsock)
Experiments 8 and 10 use Windows-only headers (wincrypt.h, winsock2.h);
their code is kept exactly as in the lab manual and labelled Windows-only in
the printout. All other experiments compile with g++ on Linux.
Source: Foundation of Cryptography Lab Manual (course code 23UCSPCL3508 / 23UCSPCP3508).
Metadata
Release files for cryptofoc 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cryptofoc-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for cryptofoc-0.1.0-py3-none-any.whl |
Release files / cryptofoc-0.1.0-py3-none-any.whl
| Download URL | cryptofoc-0.1.0-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
438e39ab1b16424affe8a9fa90b7095b1a6af67cba93e8169f991ad74f007d66
|
|
BLAKE2b-256 checksum How to use checksums |
5b9af1b31942210e9adbebbeabc9156caa8270465ef47d52aadc4b22ae26f452
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for cryptofoc 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.