Password policy

From zakirkun/ice-tea · View interactive version

Password policy is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects passwords stored in plaintext or hashed with weak/unsalted algorithms instead of bcrypt/argon2/scrypt.

How to use this skill

Skill file

Insecure Password Storage

Overview

Storing passwords in plaintext or with weak hashing algorithms like MD5 or SHA-1 (even with a salt) is insecure because:

The correct approach is to use a purpose-built password hashing algorithm: bcrypt, Argon2id, or scrypt.

Detection Strategy

Look for:

Remediation

Use bcrypt with a minimum cost factor of 12, or Argon2id.

Vulnerable (Python):

import hashlib
stored = hashlib.md5(password.encode()).hexdigest()

Safe (Python):

import bcrypt
hashed = bcrypt.hashpw(password.encode(), bcrypt.gensalt(rounds=12))
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.