One-Way Function

Context: FIT1058_MOC · easy to compute, hard to invert · modular-exp-with-fixed-base and its inverse, the Discrete Logarithm · used for password storage and key exchange

Quick Revision

  • 🎯 Objective: easy to compute, hard to invert “usually” ➔ candidate: .
  • 📦 Core Components: easy forward (Modular Exponentiation) ➔ hard inverse (Discrete Log).
  • ⚡ Key Constraint: believed to exist, none proven; security rests on assumed hardness.

📝 Core

1. One-Wayness

  • Definition ➔ easy to compute, hard to invert “usually”.
  • Status ➔ believed to exist; none proven (proving one would settle a major open problem).
  • Candidate ➔ modular exponentiation with fixed base : .

2. The Hard Inverse

  • Discrete Logarithm ➔ given , find with ().
  • Primitive-root base ➔ powers cover all of ⟹ largest search space.
  • Hardness ➔ no known fast algorithm, comparable to factorisation.

3. Application

  • Password storage ➔ store ; accept if .
  • Not encryption ➔ no key, no intended recipient recovering .

Key identities:

⚖️ Core Decision Matrix

DirectionProblemDifficulty
forwardeasy ()
inversediscrete logbelieved hard
base choiceprimitive rootmaximises search
moduluslarge prime largest

When It Flips: the asymmetry (cheap forward, infeasible backward) is the whole point — protecting information that must stay quickly verifiable. Password hashing is keyless (no recipient recovers ), unlike a Cryptosystem.

📊 Exam Execution Trace

Applied Exercise

Problem: Solve the discrete log . Derivation Proof / Hand-Calculation Walkthrough:

Final Extracted Output: forward is one squaring chain; inverting needs a table search giving — infeasible for a large prime.

⚠️ Common Mistakes

  • 💡 Belief, not proof ➔ security rests on the assumed hardness of Discrete Log/factorisation; a fast algorithm would break these schemes.

🧠 Active Recall