Skip to main content

Lesson 1 · package

Redact one structured log record

Install mgf-common 0.52.0 from Magogi's public index, produce JSON, and assert that two made-up sensitive values do not survive.

  • Uses published APIs from the public wheel.
  • Prints a stable result across machines.
  • Explains the boundary around opaque objects.

Lesson 2 · bytes

Check a file with SHA-256

Hash two nearly identical UTF-8 files, compare exact bytes, and deliberately catch a mismatch.

  • Uses only the Python standard library.
  • Works from fixed, downloadable fixtures.
  • Separates equality from truth and authorship.