← Tutorials & Labs

Developer Practice

Secure coding practice for developers.

A subcategory of Tutorials & Labs, collecting its introduction, articles and resource entry points.

§

Articles here

22 Nov 2026 Tutorials & Labs

Handling Algorithm Deprecation and Data Re-encryption: An Engineering Method from Announcement to Zero

A deprecation announcement is only the beginning; the hard part is moving legacy data, historical signatures, and long-lived tokens over smoothly. This article gives an engineering process for handling deprecation: inventory, dual-track transition, batch re-encryption, the special handling of signatures and tokens, and the verification bar for final retirement.

Algorithm DeprecationData MigrationRe-encryptionCryptographic Agility

Read more →
22 Nov 2026 Tutorials & Labs

Making Algorithms Replaceable: Code Structure for Cryptographic Agility

Algorithms age, get broken, and get replaced by standards. This article covers the code-level structure of cryptographic agility: abstraction interfaces, algorithm identifiers and versioning, ciphertext that carries its own metadata, configuration-driven switching, and engineering the dual-read transition period.

Cryptographic AgilityArchitectureAlgorithm MigrationSecure Coding

Read more →
22 Nov 2026 Tutorials & Labs

A Code Review Checklist for Cryptography: The Questions a Reviewer Should Ask, Item by Item

Bugs in cryptographic code usually do not crash — they silently stop protecting. This article provides a checklist ready to use in review: randomness, algorithms and modes, key handling, comparison and timing, error handling, parameters and encoding — with the question to ask and the rejection bar for each item.

Code ReviewCryptographyChecklistSecure Coding

Read more →
22 Nov 2026 Tutorials & Labs

Dependency and Supply-Chain Hygiene: The Daily Discipline of Lockfiles, Auditing, and Signature Verification

Most of a modern application's code comes from third-party dependencies, and crypto libraries are a single point of trust. This article sets out the daily discipline of dependency hygiene: pinning versions, verifying integrity, continuously auditing for vulnerabilities, checking provenance and signatures, and a review process for updates and replacements.

Supply-Chain SecurityDependency ManagementVulnerability AuditingSecure Coding

Read more →
22 Nov 2026 Tutorials & Labs

Where Key Material Belongs: Envelope Encryption, KMS, and the Limits of Environment Variables

What are the risks of putting keys in code, config files, or environment variables? This article explains the layered structure of envelope encryption, the boundary of what a KMS is responsible for, and why environment variables are only a thin last line of defense.

Key ManagementEnvelope EncryptionKMSSecure Coding

Read more →
22 Nov 2026 Tutorials & Labs

Never Roll Your Own Crypto: A Concrete Catalog of Failures

Home-grown encryption algorithms, hand-assembled protocols, hashing used as encryption, ECB mode... This article lists, one by one, the most common ways developers roll their own crypto and fail, explains why each mistake is dangerous, and gives the correct off-the-shelf approach.

Secure CodingAnti-PatternsEncryption PracticeCode Review

Read more →
22 Nov 2026 Tutorials & Labs

Getting Randomness Right in Code: Secure Random Entry Points by Language and Common Misuses

Randomness is the source of keys, nonces, and tokens. This article lists, by language, the cryptographically secure random entry points you should use, explains how OS entropy sources work, and catalogs the classic failures of timestamps, ordinary PRNGs, and bad seeding.

RandomnessEntropy SourcesSecure CodingKey Generation

Read more →
22 Nov 2026 Tutorials & Labs

Secrets and Certificates in CI Pipelines: Injection, Redaction, and Least-Privilege Discipline

A CI system is one of the most secret-dense places in an organization, and one of the most overlooked leak channels. This article explains how secrets should be injected in CI, log redaction, preferring short-lived credentials, least privilege per job, and the practical discipline of certificate rotation.

CI/CDKey ManagementPipeline SecurityCertificate Rotation

Read more →
§

More in this section