### Cryptographic Fundamentals
* **Encoding (e.g. Base64):** Transforms data into alternate character sets for reliable network transport. It provides **zero confidentiality**.
* **Hashing (e.g. SHA-256, bcrypt):** A deterministic, one-way mathematical function. Given input $x$, it produces a fixed-length digest $H(x)$. It is computationally infeasible to invert $H(x)$ back to $x$.
* **Encryption (e.g. AES-256, RSA):** A two-way transformation that secures confidentiality using secret keys.
example.pyPython 3.11
import hashlib
digest = hashlib.sha256(b"admin").hexdigest()
print(f"DIGEST_PREFIX:{digest[:8]}")