Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aj-geddes avatar

Data Encryption

  • 551 installs
  • 305 repo stars
  • Updated March 4, 2026
  • aj-geddes/useful-ai-prompts

data-encryption is an agent skill that implements AES, RSA, TLS, and key-management patterns for developers who must protect user data, API payloads, database fields, and secrets without designing crypto from scratch.

About

data-encryption is a skill from aj-geddes/useful-ai-prompts that walks developers through industry-standard encryption for data at rest, in transit, and end-to-end protected channels. It covers AES and RSA usage, TLS configuration, and proper key management practices via an overview, quick start, reference guides, and best-practices sections rather than ad-hoc cipher choices. Developers invoke it when storing sensitive records, encrypting database columns, sealing file blobs, or hardening service-to-service communication where rolling custom crypto would be unsafe. The skill emphasizes proven algorithms and operational key handling instead of inventing primitives. It fits backend and API workstreams where compliance or threat models require explicit encryption design. Pair it with deployment skills for certificate rotation and secrets stores. Skip it when you only need framework defaults like HTTPS termination already managed by your cloud provider and no field-level encryption is required.

  • Implements AES-256-GCM, RSA, TLS and secure key derivation with PBKDF2
  • Covers data at rest, in transit, file encryption and end-to-end encryption
  • Handles compliance requirements including GDPR, HIPAA and PCI-DSS
  • Provides ready-to-use JavaScript encryption service with secure random key generation
  • Includes password storage, database encryption and communication security patterns

Data Encryption by the numbers

  • 551 all-time installs (skills.sh)
  • Ranked #497 of 2,203 Security skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill data-encryption

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs551
repo stars305
Last updatedMarch 4, 2026
Repositoryaj-geddes/useful-ai-prompts

How do you implement encryption for data at rest and in transit?

Add strong encryption for user data, API payloads, database fields, and secrets without reinventing cryptographic primitives.

Who is it for?

Backend developers adding field-level encryption, secure API payloads, or TLS-hardened services who want standard algorithms and key-handling guidance.

Skip if: Projects where platform-managed HTTPS and managed database encryption already satisfy requirements with no custom crypto logic needed.

When should I use this skill?

The user needs to secure sensitive data storage, encrypt database fields, protect files, or implement end-to-end encrypted communication.

What you get

Encryption implementation code, TLS configuration guidance, key-management procedures, and field-level protection patterns for sensitive data stores.

  • Encryption implementation patterns
  • Key management procedures
  • TLS configuration guidance

Files

SKILL.mdMarkdownGitHub ↗

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

  /**
   * Derive a key from a password using PBKDF2
   */
  async deriveKey(password, salt = null) {
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Node.js Encryption LibraryNode.js Encryption Library
Python Cryptography ImplementationPython Cryptography Implementation
Database Encryption (PostgreSQL)Database Encryption (PostgreSQL)
TLS/SSL ConfigurationTLS/SSL Configuration

Best Practices

✅ DO

  • Use AES-256-GCM for symmetric encryption
  • Use RSA-4096 or ECC for asymmetric encryption
  • Implement proper key rotation
  • Use secure key storage (HSM, KMS)
  • Salt and hash passwords
  • Use TLS 1.2+ for transit encryption
  • Implement key derivation (PBKDF2, Argon2)
  • Use authenticated encryption

❌ DON'T

  • Roll your own crypto
  • Store keys in code
  • Use ECB mode
  • Use MD5 or SHA1
  • Reuse IVs/nonces
  • Use weak key lengths
  • Skip authentication tags

Related skills

How it compares

Use data-encryption for application-level crypto design; rely on cloud KMS and managed TLS when you only need infrastructure defaults.

FAQ

What algorithms does the data-encryption skill cover?

The data-encryption skill from aj-geddes/useful-ai-prompts covers AES, RSA, and TLS along with key management practices. It targets data at rest, in transit, and end-to-end encrypted communication without inventing custom primitives.

When should developers use the data-encryption skill?

Developers should use data-encryption when storing sensitive records, encrypting database columns, sealing files, or hardening service communication. The skill provides reference guides and best practices for standard algorithm choices.

Securityauditcomplianceappsec

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.