Skip to content
Skills Library
Security · Building & coding

data-encryption

/data-encryption

Encrypt data at rest and in transit with vetted primitives and a managed key service that rotates on schedule. Use when handling sensitive data on disk or over the network, or when reviewing how a system stores and moves it.

Repository
AI-SKILLS ↗
Licence
MIT
Last repository change
05.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 05.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Encrypt data at rest and in transit with vetted primitives and a managed key service that rotates on schedule. Use when handling sensitive data on disk or over the network, or when reviewing how a system stores and moves it.

Original author description

Encrypt data at rest and in transit with vetted primitives and a managed key service that rotates on schedule. Use when handling sensitive data on disk or over the network, or when reviewing how a system stores and moves it.

How it works

  1. Method
  2. Checks
  3. Boundaries
Original SKILL.md headings · 50 lines, 415 words
SKILL.md preview
---
name: data-encryption
description: Encrypt data at rest and in transit with vetted primitives and a managed key service that rotates on schedule. Use when handling sensitive data on disk or over the network, or when reviewing how a system stores and moves it.
---

# Data encryption

Encryption turns a stolen disk or a sniffed connection into a non-event, but
only when the keys are managed as carefully as the data. Hardcoded keys and
homemade ciphers imitate protection while leaving the door open, which is worse
than none because it buys false confidence.

## Method

1. **Require TLS 1.2 or higher on every hop,** service-to-service traffic
   included. Terminate with certificates from a managed CA (ACM, Let's Encrypt),
   disable TLS 1.0 and 1.1 and weak ciphers, and turn on HSTS at public edges so
   no downgrade slips through.
2. **Encrypt at rest with AES-256 via managed storage encryption:** EBS, S3
   SSE-KMS, RDS, Cloud SQL. Switch it on at creation, because retrofitting an
   unencrypted volume is a full migration, not a config toggle.
3. **Hold keys in a KMS, never in code.** Use AWS KMS, GCP KMS, or HashiCorp
   Vault, and let the application call the service to encrypt, decrypt, or
   unwrap a data key without ever touching the master key. Scan the repo for
   high-entropy strings before each release.
4. **Use envelope encryption for bulk data.** Generate a data encryption key
   (DEK) per object, encrypt the payload with it, wrap the DEK under the KMS
   master key (KEK), and store the wrapped DEK beside the ciphertext. One master
   key then protects millions of objects it never directly touches.
5. **Rotate on a clock and on compromise.** Enable automatic annual rotation of
   master keys and re-wrap DEKs against the new version; on a suspected leak,
   rotate now and re-encrypt. Rotation you cannot complete in a day is a plan,
   not a control.
6. **Reach for vetted primitives only.** libsodium/NaCl, the platform crypto
   library, or AES-GCM for authenticated encryption. Never ECB mode, never a
   static or reused IV, and never MD5 or SHA-1 where the value bears security
   weight.
7. **Scope key use with least privilege.** Grant encrypt and decrypt separately,
   per service. An ingestion service that only writes should not hold a decrypt
   grant, or one stolen credential reads the whole store.

## Checks

- Does any endpoint still accept TLS 1.0 or 1.1, or fall back to plaintext HTTP?
- Can you rotate a master key today without shipping an application code change?
- Is any key, IV, or password sitting anywhere in the git history?

## Boundaries

This covers transport and storage encryption. Finding secrets that slipped into
code is secrets-scanning. Choosing algorithms for a regulated regime (FIPS
140-2, for example) follows that standard's approved list, not general
preference.

Versions

The database has no other skills named data-encryption.

Database snapshot: 13.11.2026 · package version 0cba8dc3d567 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100meddev-encryption
    Guide selection and use of cryptography for medical devices: algorithms, key derivation, data at rest/in transit, library choice, and FIPS considerations. Use when working on encryption in medical device software.
  • 90data-privacy
    Data in transit, data at rest, privacy/minimization and safe logging. Use when touching storage, encryption, TLS, personal data, analytics or third-party SDKs, logs or telemetry, backups or account deletion.
  • 90data-protection-and-encryption
    Protects data itself rather than the systems around it — classifying what you hold, encrypting in transit and at rest and understanding what each actually defends against, managing keys and their rotation, handling secrets in applications and pipelines, minimizing and…
  • 100encryption-at-rest-checker
    Validate encryption at rest checker operations. Auto-activating skill for Security Advanced. Triggers on: encryption at rest checker, encryption at rest checker Part of the Security Advanced skill category. Use when working with encryption at rest checker functionality. Trigger…
  • 100implementing-aes-encryption-for-data-at-rest
    Guides implementing AES-256 encryption in GCM mode (FIPS 197) for files and data stores at rest, covering key derivation, IV/nonce management, and authenticated encryption. Use when deploying or configuring encryption for data at rest, establishing controls to meet compliance…
  • 90data-privacy-auditor
    Audit data protection and privacy - PII/PHI handling, encryption at rest and in transit, retention, logging of sensitive data, tenant isolation, and GDPR/CCPA obligations. Use for /vault, privacy reviews, or compliance-driven data audits.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.