Skip to content

Practical encryption guide covering AES-256-GCM, RSA, TLS, and key management for data at rest and in transit.

CCM score
37 of 100
skills.sh installs
618
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers symmetric and asymmetric encryption, key derivation, password storage, and TLS configuration for data at rest and in transit
  • Includes a Node.js encryption service example plus reference guides for Node.js, Python, PostgreSQL database encryption, and TLS/SSL
  • Enforces guardrails such as AES-256-GCM with authenticated tags, no ECB mode, no MD5 or SHA1, and no reused IVs or nonces
  • Designed for developers securing sensitive data, meeting GDPR, HIPAA, or PCI-DSS requirements, or building end-to-end encryption

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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);
  }

Details

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

More from aj-geddes/useful-ai-prompts

All 258

Similar to Data Encryption

More Security