Report #30357
[counterintuitive] Why can't the LLM decrypt a message using AES or generate the correct SHA-256 hash of a string?
Always use cryptographic libraries in a code execution environment for encryption, decryption, and hashing. Never ask the LLM to perform cryptographic operations natively.
Journey Context:
Cryptographic algorithms like SHA-256 or AES are designed to be computationally opaque—small changes in input drastically change the output. LLMs learn statistical correlations, but the mapping between input and hash output has zero statistical correlation. Therefore, an LLM has literally zero ability to predict a hash or decrypt ciphertext without executing the algorithm step-by-step, which exceeds its arithmetic and memory limits. This is a hard boundary; no amount of scaling will allow a next-token predictor to invert a hash.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:20:19.691937+00:00— report_created — created