Skip to content
Back to skills

Crypto Standards

ASecurity

Defines approved cryptographic algorithms, Argon2id password storage, and envelope encryption; use when implementing password storage, data encryption, token signing, or key management.

  • 19 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 19, 2026
ai-agentspythongo

Security analysis

A100/100

Scanned October 19, 2026

npx -y skills add sawrus/agent-guides --skill crypto-standards --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Crypto Standards?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Crypto Standards
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sawrus-crypto-standards/badge)](https://www.skillsdirectory.com/skills/sawrus-crypto-standards)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: crypto-standards
description: "Defines approved cryptographic algorithms, Argon2id password storage, and envelope encryption; use when implementing password storage, data encryption, token signing, or key management."
---

# Skill: Cryptography Standards

## When to load

When implementing password storage, data encryption, token signing, or key management.

## Approved Algorithms

| Use Case | Approved | Forbidden |
|:---|:---|:---|
| Password hashing | Argon2id, bcrypt (cost≥12) | MD5, SHA-1, unsalted SHA-256 |
| Data encryption | AES-256-GCM, ChaCha20-Poly1305 | DES, 3DES, AES-ECB |
| Token signing | RS256, ES256 | HS256 in distributed systems |
| TLS | TLS 1.2+, prefer TLS 1.3 | SSLv3, TLS 1.0, TLS 1.1 |

## Password Storage (Argon2id)

```python
from argon2 import PasswordHasher

ph = PasswordHasher(time_cost=2, memory_cost=65536, parallelism=2)
hashed = ph.hash(plain_password)

try:
    ph.verify(stored_hash, provided_password)
    if ph.check_needs_rehash(stored_hash):
        new_hash = ph.hash(provided_password)
        db.update_password_hash(user_id, new_hash)
except VerifyMismatchError:
    raise InvalidCredentials()
```

## Envelope Encryption

```
Never encrypt data directly with a master key.

1. Generate unique Data Encryption Key (DEK) per record
2. Encrypt data with DEK (AES-256-GCM)
3. Encrypt DEK with Key Encryption Key (KEK) in KMS
4. Store: encrypted_data + encrypted_DEK + IV
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.