A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

One-Way Functions

Research Depth 99 in the knowledge graph ☐ I know this ☆ Set as goal
10topics build on this
538prerequisites beneath it
See this on the map →
Complexity Class P: Polynomial TimeComputational Hardness Assumptions+1 more→→Commitment SchemesPseudorandom Generators+1 more
one-way-function preimage-resistance minimal-assumption complexity-theory

Core Idea

A one-way function (OWF) is a function that is easy to compute (polynomial time) but hard to invert (no polynomial-time algorithm succeeds on a non-negligible fraction of inputs). OWFs are the minimal assumption of cryptography: they exist if and only if P != NP for certain structured problems, and their existence is necessary and sufficient for private-key cryptography (pseudorandom generators, pseudorandom functions, MACs, symmetric encryption, digital signatures, commitment schemes). Candidate OWFs include integer multiplication (easy to multiply, hard to factor) and modular exponentiation. Proving any function is one-way remains an open problem equivalent in difficulty to separating P from NP.

Explainer

The concept of a one-way function is the minimal mathematical abstraction underlying all of computational cryptography. Informally, a OWF is a function f that is easy to compute but hard to invert: given x, computing f(x) takes polynomial time, but given f(x), no efficient algorithm can find any preimage x' with f(x') = f(x) except with negligible probability. The hardness is average-case — inversion must fail on a random input with overwhelming probability, not just on carefully constructed worst-case inputs. This is a stronger requirement than NP-hardness, which only guarantees that some instances are hard.

The importance of OWFs stems from a remarkable theoretical result: one-way functions are both necessary and sufficient for private-key cryptography. If OWFs exist, you can build pseudorandom generators (Hastad-Impagliazzo-Levin-Luby), pseudorandom functions (Goldreich-Goldwasser-Micali), message authentication codes, CPA-secure symmetric encryption, commitment schemes, and even digital signatures (Rompel). Conversely, if OWFs do not exist, none of these primitives can exist — every function can be efficiently inverted, so secret keys can be recovered from public information. OWFs are the minimal assumption: prove they exist and you get all of symmetric cryptography; prove they don't exist and computational cryptography is impossible.

Candidate OWFs abound but none are proven. Integer multiplication (easy to compute p * q, believed hard to factor), modular exponentiation (easy to compute gx mod p, believed hard to compute discrete logarithms), and subset sum (easy to add selected numbers, believed hard to find which were selected) are all candidates. Proving that any of these is one-way would effectively resolve the P vs NP question — specifically, it would show that NP is not contained in BPP, which is a major open problem in complexity theory. This is why OWF existence remains a conjecture despite decades of effort: we believe these functions are one-way because the smartest mathematicians and computer scientists have tried and failed to invert them, but belief is not proof.

The gap between OWFs and public-key cryptography is significant. OWFs suffice for private-key (symmetric) primitives but are not known to imply public-key encryption or key exchange. Public-key schemes require trapdoor one-way functions (functions that are hard to invert in general but easy to invert with a secret trapdoor) or specific algebraic structure (like the group structure in Diffie-Hellman). Whether OWFs imply public-key encryption is a major open question — it is possible that a world exists where private-key cryptography works but public-key cryptography is impossible. This hierarchy of assumptions — OWFs for symmetric crypto, trapdoor OWFs or CDH/DDH/LWE for public-key crypto — is the structural backbone of the field.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Finite State Machines (FSMs) → Deterministic Finite Automata (DFA) → Nondeterministic Finite Automata (NFA) → Two-Way Finite Automata → NFA to DFA Conversion (Subset Construction) → DFA Properties and Minimization Algorithms → Regular Languages: Definition and Characterization → Context-Free Grammars (CFGs) → Pushdown Automata (PDA) → Equivalence of CFGs and Pushdown Automata → Closure Properties of Context-Free Languages → Limitations of Context-Free Languages → Pumping Lemma for Context-Free Languages → Turing Machines → Variants of Turing Machines and Equivalence → Nondeterministic Time Complexity and NP → The P vs. NP Problem → Complexity Class P: Polynomial Time → Hash Functions and Collision Resistance → The RSA Cryptosystem → Computational Hardness Assumptions → One-Way Functions

Longest path: 100 steps · 538 total prerequisite topics

Prerequisites (3)

Leads To (3)