REFERENCE GUIDE
Encoding, compression, hashes, and encryption triage
A high-entropy blob can be ciphertext, compressed data, a serialized structure, or random bytes.
Also known as: base64 · crypto triage
Mechanism
A high-entropy blob can be ciphertext, compressed data, a serialized structure, or random bytes. Encoding changes representation without requiring a secret; hashing is one-way and encryption is reversible with an appropriate key. Classify the pipeline by alphabet, length, headers, and repeated structure before applying cryptographic attacks.
Practical method
Preserve the original bytes. Test reversible decoders one layer at a time and retain intermediate artifacts. Check magic values after each decoding step, then examine lengths and byte frequency. Compare several samples to distinguish stable format fields from per-message randomness.
import base64
raw = base64.b64decode(encoded, validate=True)
print(len(raw), raw[:16].hex())
Interpreting evidence
A printable decoded result is suggestive rather than conclusive. Require a recognizable structure or successful parser. A 32-byte field could be a digest, key, nonce-plus-tag, or arbitrary binary record.
Pitfalls and limits
Base64 decoding is not decryption. Lossy text conversions can corrupt ciphertext. Repeated blocks reveal structure only after determining alignment and whether the data is compressed first.