# Cryptography API

> Symmetric/asymmetric encryption, hashing, password salting, and message verification via cryptography library.

- Skill: `lord1egypt/cryptography-api` (Agent Skill)
- Install (CLI): `npx skillmds@latest add lord1egypt/cryptography-api`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lord1egypt/cryptography-api/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- License: MIT license
- Author: Lord1Egypt (https://skillmd.com/u/lord1egypt)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/lord1egypt/cryptography-api

---


# Cryptography Api

## Overview
Cryptography is a package which provides cryptographic recipes and primitives to Python developers.

## When to Use This Skill
Use to secure sensitive passwords, encrypt files, or verify integrity signatures locally.

## Quick Start (with runnable code examples)

```python
from cryptography.fernet import Fernet

# Generate key and encrypt
key = Fernet.generate_key()
f = Fernet(key)
token = f.encrypt(b"Secret payload message")
print("Encrypted:", token)

# Decrypt
decrypted = f.decrypt(token)
print("Decrypted:", decrypted)
```

## Advanced Usage
Implement RSA public/private key pairs, PBKDF2 password derivation hashing, and AES-GCM primitives.

## Key References
- [Cryptography Docs](https://cryptography.io/)

## Dependencies
- cryptography>=41.0.0

