Safeguard
Tag

password-hashing

Safeguard articles tagged "password-hashing" — guides, analysis, and best practices for software supply chain and application security.

8 articles

Application Security

Secure password hashing in Go: bcrypt, Argon2, and the mistakes in between

Go's bcrypt package caps input at 72 bytes and returns ErrPasswordTooLong instead of silently truncating — one of several Go-specific quirks that trip up password hashing code.

Jul 8, 20266 min read
Security Guides

C# Cryptography Best Practices in .NET

The right way to do cryptography in C#: authenticated encryption with AesGcm, secure randomness, PBKDF2 password hashing, constant-time comparison, and the legacy APIs to stop using.

Jul 5, 20265 min read
Open Source

bcrypt on npm: A Security Review and Safe Usage Guide

The bcrypt npm package is a solid password-hashing choice, but its 72-byte input limit and native build story create footguns worth understanding before you ship.

Oct 30, 20256 min read
Open Source

How to Use bcryptjs from npm Safely: A Security Review

The bcryptjs npm package is a pure-JavaScript bcrypt implementation with zero native dependencies. Here is when to reach for it, how to use it correctly, and the pitfalls that weaken password hashing.

May 20, 20256 min read
Security

spring-security-crypto: What It Does and How to Use It Safely

The spring-security-crypto module gives Spring apps password hashing, symmetric encryption, and key generation without pulling in the full security framework. Here is how to use each piece correctly.

Mar 18, 20255 min read
Security

How to Hash a Password in Java the Right Way in 2025

To hash a password in Java, use a slow, salted, adaptive algorithm like bcrypt or Argon2 — never a raw SHA or MD5 digest. This guide shows working code and the tuning that actually matters.

Feb 11, 20255 min read
Security

Storing Passwords Securely: What Actually Works

Storing a password means storing a slow, salted hash of it, never the password itself. Here is the modern approach that survives a database breach.

Feb 8, 20256 min read
Vulnerabilities

Password Security Storage: Hashing Done Right

Password security storage still gets built wrong in 2024 — here's what a correct implementation looks like, from algorithm choice to salt handling to migration.

Sep 17, 20245 min read

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.

password-hashing — Safeguard Blog