This covers the essentials for implementing encryption in your applications, from AES-256-GCM for data at rest to TLS configuration for transit security. You get working examples in Node.js and Python, plus specific guides for database encryption and key management. The best practices section is solid on what not to do (no ECB mode, no reusing IVs), which honestly matters more than the happy path when it comes to crypto. If you're building anything that handles sensitive data or needs to meet compliance requirements like HIPAA or PCI-DSS, this gives you the standard patterns without having to research cryptographic primitives yourself.

skills.sh installs
616
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill data-encryption --agent claude-code

Installs into .claude/skills of the current project.

Files

Data Encryption

Table of Contents

Overview

Implement robust encryption strategies for protecting sensitive data at rest and in transit using industry-standard cryptographic algorithms and key management practices.

When to Use

  • Sensitive data storage
  • Database encryption
  • File encryption
  • Communication security
  • Compliance requirements (GDPR, HIPAA, PCI-DSS)
  • Password storage
  • End-to-end encryption

Quick Start

Minimal working example:

// encryption-service.js
const crypto = require("crypto");
const fs = require("fs").promises;

class EncryptionService {
  constructor() {
    // AES-256-GCM for symmetric encryption
    this.algorithm = "aes-256-gcm";
    this.keyLength = 32; // 256 bits
    this.ivLength = 16; // 128 bits
    this.saltLength = 64;
    this.tagLength = 16;
  }

  /**
   * Generate a cryptographically secure random key
   */
  generateKey() {
    return crypto.randomBytes(this.keyLength);
  }

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, Security, AI & Agent Building
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1adobe avataraem-replicationadobe/skillsSingle entry point for all AEM 6.5 LTS Replication skills. Covers configuring replication agents, activating/deactivating content, using the Replication API pro604skills.sh installs
2adobe avatardevelopmentadobe/skillsGenerate comprehensive technical documentation for developers taking over an AEM Edge Delivery Services project. Analyzes codebase structure, custom implementat604skills.sh installs
3adobe avatarauthoringadobe/skillsGenerate comprehensive documentation for content authors taking over an AEM Edge Delivery Services project. Analyzes the project structure and produces a comple599skills.sh installs
4getsentry avatarsentry-create-alertgetsentry/sentry-agent-skillsCreate Sentry alerts using the workflow engine API. Use when asked to create alerts, set up notifications, configure issue priority alerts, or build workflow au596skills.sh installs
5madteacher avatarflutter-navigationmadteacher/mad-agents-skillsImplement, fix, refactor, review, migrate, or validate Flutter navigation and routing. Use when working with Navigator, MaterialPageRoute, Router API, go_router596skills.sh installs
6bobmatnyc avatartanstack-querybobmatnyc/claude-mpm-skillsTanStack Query (React Query) for asynchronous server-state management with automatic caching, background refetching, optimistic updates, and pagination in React595skills.sh installs