proomt

Search

Search posts, papers, and topics

Hall of Fame

Hall of FameLatacora201811 min readintermediate

Cryptographic Right Answers

Summary

Latacora’s 2018 guide lists the safe, low‑maintenance crypto choices for developers: use modern AEAD (XSalsa20‑Poly1305), 256‑bit keys, SHA‑2, libsodium/Curve25519, and strong password hashes. Avoid legacy algorithms like RSA, AES‑CBC, SHA‑1, and custom constructions.

  • Prefer AEAD constructions such as XSalsa20‑Poly1305 from libsodium; avoid AES‑CBC/CTR and manage nonces carefully.
  • Use 256‑bit symmetric keys and elliptic‑curve primitives (Curve25519, Ed25519) for asymmetric crypto; discard RSA and older DSA/ECDSA.
  • Hash with SHA‑2 (SHA‑256 or SHA‑512/256); avoid SHA‑1, MD5, and other deprecated hashes.
  • For password storage, choose scrypt, argon2, or bcrypt; treat PBKDF2 as a fallback and never roll your own scheme.

Any engineer building services that handle secrets should follow these hardened defaults to avoid common cryptographic pitfalls.

6/10

Related reading

  1. Why Does an NPM Math Library Need an Encrypted Loader?

    SafeDep discovered that several npm packages masquerading as mathjs contain an encrypted loader that only activates when a caller passes a particular matrix to the LU solver, using the matrix’s lower‑triangular factor as the decryption password. The loader decrypts and executes a multi‑stage remote‑access implant that talks to Slack, Telegram and a blockchain contract, and the same technique is r…

    Hacker News front pagesafedep.io10 minHN13741
  2. App Hardening: One Obfuscation Pipeline Across Every Port

    Codename One adds a cloud‑side hardening step that runs on the merged JAR before it is split into Android, iOS, JavaScript, and desktop binaries. It can rename symbols, encrypt string literals, and insert opaque‑predicate control‑flow guards at configurable levels (off → standard → aggressive → paranoid). The transforms are selective per platform to avoid breaking optimizers, and a mapping is kep…

    CodeName Onecodenameone.com6 min