Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill covers AES-256-GCM encryption for provider API keys. Trigger: Load this skill when handling crypto operations for API keys.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-19 | ✗→✓ | ▲ Improved | -62% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -64% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -71% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -62% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -60% | 0% |
<!-- L1:START -->
This skill covers AES-256-GCM encryption for provider API keys.
Trigger: Load this skill when handling crypto operations for API keys. <!-- L1:END -->
<!-- L2:START -->
| Task | Pattern | |------|---------| | Derive user key | derive_user_key | | Encrypt API key | encrypt_key |
<!-- L2:END -->
<!-- L3:START -->
Generate a secure key for user-specific encryption using the derive_user_key function.
pythonfrom apps.server.app.services.crypto import derive_user_key user_key = derive_user_key(user_id="example_user")
Securely encrypt an API key using AES-256-GCM with the encrypt_key function.
pythonfrom apps.server.app.services.crypto import encrypt_key encrypted_key = encrypt_key(api_key="my_secret_api_key", user_key=user_key)
bashdocker-compose run app python apps/server/app/main.py
Hardcoding API keys in the source code exposes them to security risks.
python# BAD api_key = "my_secret_api_key"
<!-- L3:END -->
Other measured skills in the registry, with their headline benchmark lift.