encryption-pattern

Implement AES and RSA encryption and decryption operations for secure data handling.

8|1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/igbuend/grimbard --skill encryption-pattern
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: encryption-pattern
Source: https://github.com/igbuend/grimbard/tree/main/skills/encryption-pattern
Command: npx skills add https://github.com/igbuend/grimbard --skill encryption-pattern

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures the confidentiality of sensitive data by providing a standardized approach to implementing encryption and decryption operations, protecting against unauthorized access.

Core Features & Use Cases

  • Data Confidentiality: Encrypts data elements and action requests to protect them from unauthorized viewing.
  • Algorithm Selection: Guides the choice of appropriate symmetric (AES) and asymmetric (RSA) encryption algorithms and key lengths.
  • Mode Configuration: Recommends secure cipher modes like GCM and CCM for authenticated encryption, while warning against insecure modes like ECB.
  • Use Case: Securely encrypting user passwords before storing them in a database, or encrypting sensitive configuration parameters.

Quick Start

Use the encryption pattern to encrypt the provided plaintext data using AES-256 in GCM mode.

Frequently Asked Questions about encryption-pattern

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I encrypt sensitive data using AES or RSA?

To encrypt sensitive data, you can use symmetric algorithms like AES-256 in GCM mode or asymmetric algorithms like RSA-2048, ensuring data confidentiality. This pattern provides standardized operations to protect data elements from unauthorized access.

What is the best cipher mode for AES encryption?

Authenticated encryption modes like GCM and CCM are recommended for AES encryption to ensure data integrity and confidentiality. Insecure modes like ECB should be avoided to prevent exposing patterns in the encrypted data.

When do I need asymmetric encryption versus symmetric encryption?

Symmetric encryption like AES is ideal for bulk data confidentiality, while asymmetric encryption like RSA is used for securely exchanging keys or protecting smaller action requests. This pattern guides algorithm selection based on your specific use case.

How can I securely encrypt user passwords before storing them in a database?

Securely encrypt user passwords before database storage by applying AES-256 in GCM mode to the plaintext data. This standardized approach protects sensitive configuration parameters and user credentials from unauthorized viewing.

What key length should I use for RSA encryption?

RSA encryption should utilize 2048-bit or 3072-bit key lengths to ensure robust security and protect data confidentiality. These recommended key lengths provide strong cryptographic protection for sensitive data elements.

Does this encryption pattern support decrypting data?

Yes, this encryption pattern supports decryption operations alongside encryption to ensure data confidentiality. It implements secure handling for both symmetric and asymmetric algorithms to restore original plaintext data.