hashing-passwords

Hash passwords with bcrypt or argon2id using automatic salting.

Updated Nov 21, 2025
One-click install
npx skills add https://github.com/djankies/claude-configs --skill hashing-passwords
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hashing-passwords
Source: https://github.com/djankies/claude-configs/tree/main/typescript/skills/hashing-passwords
Command: npx skills add https://github.com/djankies/claude-configs --skill hashing-passwords

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CRITICAL security guidance for credential handling, ensuring passwords are never stored in plaintext or reversible forms, and that third-party credentials are avoided.

Core Features & Use Cases

  • NEVER store raw passwords; hash with bcrypt/argon2 with proper salting.
  • Prefer OAuth for third-party auth and store API keys in environment variables.
  • Demonstrate secure password verification via hash compares.

Quick Start

Hash a password using bcrypt with a salt rounds setting, and verify a password against the stored hash.

Frequently Asked Questions about hashing-passwords

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I hash passwords securely instead of storing them in plaintext?

Hash passwords with bcrypt or argon2 using automatic salting rather than storing raw credentials. Bcrypt with cost 12+ and argon2id both prevent attackers from reversing hashes even if your database is compromised, making plaintext storage obsolete.

What's the difference between bcrypt and argon2 for password hashing?

Both bcrypt and argon2id are cryptographically secure hashing algorithms with built-in salting. Argon2id is newer and resistant to GPU attacks; bcrypt is battle-tested and widely supported. Choose based on your security posture and platform availability.

Can I use Base64 encoding to protect passwords?

No. Base64 is encoding, not encryption or hashing—it's easily reversed and provides zero security. Always hash passwords with bcrypt or argon2; encoding alone leaves credentials exposed if your database is breached.

How do I verify a password against a stored hash?

Use hash comparison functions built into bcrypt or argon2 libraries to securely compare user input against the stored hash. Never manually compare strings, which exposes timing vulnerabilities and defeats the purpose of hashing.

Should I store API keys the same way as passwords?

No. Store API keys in environment variables or secure secret-management systems, not in code or databases. Treat them as sensitive credentials but avoid hashing them; instead, use encryption or external vaults.

Why is minimum password strength enforcement important with hashing?

Hashing protects weak passwords against database breaches, but weak passwords remain vulnerable to brute-force attacks offline. Enforce minimum strength requirements—length, complexity—before hashing to reduce attack surface.