🔐 Secure Password Handling in Go with PassForge: Modern & Legacy Support
Managing passwords securely is non-negotiable—but what happens when you’re modernizing an old system where passwords are hashed with outdated algorithms like descrypt?
With PassForge, you don’t have to choose between security and compatibility. Its Delegate Encoder feature allows you to seamlessly support legacy formats while enforcing modern standards for new passwords.
🌟 Why PassForge?
PassForge is a Go library that abstracts password encoding behind a flexible interface. It supports:
- ✅
bcrypt,argon2,scrypt,pbkdf2for modern encoding - ⚠️ Legacy support for
descrypt,ldap, and others via delegation - 🔁 A delegate encoder to route password verification/encoding based on prefix
🔎 Inspired by Spring Security’s DelegatingPasswordEncoder
The Delegate Encoder pattern in PassForge is heavily inspired by Spring Security’s DelegatingPasswordEncoder introduced in Spring Security 5.