Metadata-Version: 2.4
Name: foccode
Version: 1.0.0
Summary: Foundation of Cryptography Lab, all 10 experiments: exp1() to exp10(), all()
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# foccode

Foundation of Cryptography Lab, all 10 experiments, for the terminal.

Numbering follows the Lab Manual (FOC_Lab_Manual.pdf, index page 1):
1. Number Theory programs, 2. Extended Euclidean, 3. Diffie-Hellman,
4. S-DES, 5. S-AES, 6. RSA, 7. Digital Signature, 8. SHA-1,
9. Software Vulnerabilities (Flawfinder), 10. Socket Programming.

## Install

This package is not published on PyPI, so `pip install foccode` on its own
will not find it. Install the supplied wheel instead:

```bash
pip install foccode-1.0.0-py3-none-any.whl
```

Single-file fallback, no wheel needed: copy `foccode.py` next to your
script / notebook, then `import foccode` works from that folder.
No external libraries are needed, only Python 3.

## Use in a terminal

```python
import foccode
foccode.exp2()   # one experiment, e.g. Experiment 2
foccode.exp(2)   # same, by number
foccode.all()    # all 10 experiments, one after another, in the terminal
```

`p1()` to `p10()` are short aliases for `exp1()` to `exp10()`.

Each function prints, in order: Aim, Objective, Theory, Algorithm,
Flowchart (text version; the flowchart image is in the PDF version),
C++ Code from the Lab Manual, Java Code where available, Output,
Conclusion.

Experiment 9: the Lab Manual does contain code (vulnerable.cpp and
secure.cpp) and output (Flawfinder report and program runs), so Code
and Output are included for Experiment 9 in this package. If you want
Code and Output removed for Experiment 9 only, tell me and it will be
removed.
