MO

moai-security-encryption

Secure your data with professional cryptographic patterns and AI-driven orchestration.

Install

mkdir -p .claude/skills/moai-security-encryption && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14672" && unzip -o skill.zip -d .claude/skills/moai-security-encryption && rm skill.zip

Installs to .claude/skills/moai-security-encryption

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Enterprise Encryption Security with AI-powered cryptographic architecture, Context7 integration, and intelligent encryption orchestration for data protection
157 charsno explicit “when” trigger
Advanced

Key capabilities

  • Design AI-powered encryption architectures
  • Implement intelligent key management with rotation
  • Select advanced cryptographic algorithms
  • Deploy enterprise security frameworks
  • Integrate with Context7 for cryptographic patterns
  • Ensure compliance with standards like FIPS, NIST, PCI DSS, GDPR, HIPAA

How it works

The skill provides guidance on enterprise encryption security, use AI-powered cryptographic architecture and Context7 integration for intelligent encryption orchestration and compliance.

Inputs & outputs

You give it
A request for encryption implementation, cryptographic security discussions, or key management planning
You get back
Guidance on modern encryption stack, core cryptographic algorithms, key management systems, and implementation standards

When to use moai-security-encryption

  • Implementing encryption
  • Managing cryptographic keys
  • Ensuring data security

About this skill

Enterprise Encryption Security Expert v4.0.0

Skill Metadata

FieldValue
Skill Namemoai-security-encryption
Version4.0.0 (2025-11-13)
TierEnterprise Security Expert
AI-Powered✅ Context7 Integration, Intelligent Architecture
Auto-loadOn demand when encryption keywords detected

What It Does

Enterprise Encryption Security expert with AI-powered cryptographic architecture, Context7 integration, and intelligent encryption orchestration for comprehensive data protection.

Revolutionary v4.0.0 capabilities:

  • 🤖 AI-Powered Encryption Architecture using Context7 MCP for latest cryptographic patterns
  • 📊 Intelligent Key Management with automated rotation and lifecycle optimization
  • 🚀 Advanced Cryptographic Implementation with AI-driven algorithm selection
  • 🔗 Enterprise Security Framework with zero-configuration encryption deployment
  • 📈 Predictive Security Analytics with threat assessment and compliance monitoring

When to Use

Automatic triggers:

  • Encryption implementation and cryptographic security discussions
  • Data protection and privacy compliance requirements analysis
  • Key management and rotation strategy planning
  • Secure communication and storage implementation

Manual invocation:

  • Designing enterprise encryption architectures with optimal security
  • Implementing comprehensive key management systems
  • Planning cryptographic algorithms and security protocols
  • Optimizing encryption performance and compliance

Quick Reference (Level 1)

Modern Encryption Stack (November 2025)

Core Cryptographic Algorithms

  • AES-256-GCM: Symmetric encryption with authenticated encryption
  • RSA-4096: Asymmetric encryption for key exchange and digital signatures
  • ECC P-384: Elliptic curve cryptography for efficiency
  • SHA-384: Cryptographic hashing for integrity verification
  • HMAC-SHA256: Message authentication codes

Key Management Systems

  • HashiCorp Vault: Enterprise secrets management
  • AWS KMS: Cloud-based key management service
  • Azure Key Vault: Microsoft cloud key management
  • Kubernetes Secrets: Container-native secret storage
  • Hardware Security Modules (HSM): Hardware-based key protection

Implementation Standards

  • FIPS 140-2/3: Federal Information Processing Standards
  • NIST SP 800-57: Key management guidelines
  • PCI DSS: Payment card industry security standards
  • GDPR: Data protection and privacy regulation
  • HIPAA: Healthcare information protection

Security Features

  • End-to-End Encryption: Complete data protection lifecycle
  • Key Rotation: Automated key renewal and secure rotation
  • Zero-Knowledge Architecture: Privacy-preserving encryption
  • Quantum-Resistant: Preparation for quantum computing threats
  • Audit Logging: Comprehensive security event tracking

Core Implementation (Level 2)

Encryption Architecture Intelligence

# AI-powered encryption architecture optimization with Context7
class EncryptionArchitectOptimizer:
    def __init__(self):
        self.context7_client = Context7Client()
        self.crypto_analyzer = CryptographicAnalyzer()
        self.security_validator = SecurityValidator()
    
    async def design_optimal_encryption_architecture(self, 
                                                   requirements: SecurityRequirements) -> EncryptionArchitecture:
        """Design optimal encryption architecture using AI analysis."""
        
        # Get latest cryptographic documentation via Context7
        crypto_docs = await self.context7_client.get_library_docs(
            context7_library_id='/cryptography/docs',
            topic="encryption algorithms key management security 2025",
            tokens=3000
        )
        
        security_docs = await self.context7_client.get_library_docs(
            context7_library_id='/security/docs',
            topic="data protection compliance best practices 2025",
            tokens=2000
        )
        
        # Optimize cryptographic algorithms
        algorithm_selection = self.crypto_analyzer.select_optimal_algorithms(
            requirements.data_classification,
            requirements.performance_requirements,
            crypto_docs
        )
        
        # Validate security requirements
        security_configuration = self.security_validator.configure_security(
            requirements.compliance_frameworks,
            requirements.threat_model,
            security_docs
        )
        
        return EncryptionArchitecture(
            algorithm_configuration=algorithm_selection,
            key_management_system=self._design_key_management(requirements),
            security_framework=security_configuration,
            implementation_patterns=self._select_implementation_patterns(requirements),
            compliance_integration=self._ensure_compliance(requirements),
            performance_optimization=self._optimize_performance(requirements)
        )

Advanced Encryption Implementation

// Enterprise-grade encryption with TypeScript
import crypto from 'crypto';
import { promisify } from 'util';

const randomBytes = promisify(crypto.randomBytes);
const pbkdf2 = promisify(crypto.pbkdf2);

interface EncryptionConfig {
  algorithm: string;
  keyLength: number;
  ivLength: number;
  tagLength: number;
  iterations: number;
  saltLength: number;
}

export class AdvancedEncryptionManager {
  private config: EncryptionConfig;
  private keyManager: KeyManager;

  constructor(config: Partial<EncryptionConfig> = {}) {
    this.config = {
      algorithm: 'aes-256-gcm',
      keyLength: 32,
      ivLength: 16,
      tagLength: 16,
      iterations: 100000,
      saltLength: 32,
      ...config,
    };

    this.keyManager = new KeyManager();
  }

  async encrypt(plaintext: string, keyId?: string): Promise<EncryptedData> {
    try {
      // Get or derive encryption key
      const key = await this.keyManager.getKey(keyId);
      
      // Generate random salt and IV
      const salt = await randomBytes(this.config.saltLength);
      const iv = await randomBytes(this.config.ivLength);
      
      // Create cipher
      const cipher = crypto.createCipher(this.config.algorithm, key);
      cipher.setAAD(salt); // Additional authenticated data
      
      let encrypted = cipher.update(plaintext, 'utf8', 'hex');
      encrypted += cipher.final('hex');
      
      const tag = cipher.getAuthTag();
      
      return {
        encrypted,
        salt: salt.toString('hex'),
        iv: iv.toString('hex'),
        tag: tag.toString('hex'),
        algorithm: this.config.algorithm,
        keyId,
        timestamp: new Date().toISOString(),
      };
    } catch (error) {
      throw new Error(`Encryption failed: ${error.message}`);
    }
  }

  async decrypt(encryptedData: EncryptedData): Promise<string> {
    try {
      // Get decryption key
      const key = await this.keyManager.getKey(encryptedData.keyId);
      
      // Create decipher
      const decipher = crypto.createDecipher(
        encryptedData.algorithm,
        key
      );
      
      // Set parameters
      decipher.setAAD(Buffer.from(encryptedData.salt, 'hex'));
      decipher.setAuthTag(Buffer.from(encryptedData.tag, 'hex'));
      
      let decrypted = decipher.update(encryptedData.encrypted, 'hex', 'utf8');
      decrypted += decipher.final('utf8');
      
      return decrypted;
    } catch (error) {
      throw new Error(`Decryption failed: ${error.message}`);
    }
  }

  async encryptFile(
    inputPath: string,
    outputPath: string,
    keyId?: string
  ): Promise<FileEncryptionResult> {
    const fs = require('fs').promises;
    
    try {
      // Read file
      const fileData = await fs.readFile(inputPath);
      const fileStats = await fs.stat(inputPath);
      
      // Generate salt and IV
      const salt = await randomBytes(this.config.saltLength);
      const iv = await randomBytes(this.config.ivLength);
      
      // Get encryption key
      const key = await this.keyManager.getKey(keyId);
      
      // Create cipher
      const cipher = crypto.createCipher(this.config.algorithm, key);
      cipher.setAAD(salt);
      
      // Encrypt file in streaming mode
      const inputStream = fs.createReadStream(inputPath);
      const outputStream = fs.createWriteStream(outputPath);
      
      // Write header
      outputStream.write(JSON.stringify({
        salt: salt.toString('hex'),
        iv: iv.toString('hex'),
        algorithm: this.config.algorithm,
        originalSize: fileStats.size,
        keyId,
      }) + '\n');
      
      // Pipe encryption
      inputStream.pipe(cipher).pipe(outputStream);
      
      return new Promise((resolve, reject) => {
        outputStream.on('finish', () => {
          resolve({
            outputPath,
            originalSize: fileStats.size,
            encryptedSize: fileStats.size + this.config.saltLength + this.config.ivLength,
            keyId,
          });
        });
        
        outputStream.on('error', reject);
      });
    } catch (error) {
      throw new Error(`File encryption failed: ${error.message}`);
    }
  }
}

// Advanced key management system
class KeyManager {
  private keyStore: Map<string, CryptoKey> = new Map();
  private rotationSchedule: Map<string, Date> = new Map();

  async generateKey(keyId: string, algorithm: string = 'aes-256-gcm'): Promise<string> {
    const key = await randomBytes(32); // 256-bit key
    
    // Store key securely (in production, use HSM or KMS)
    this.keyStore.set(keyId, key);
    
    // Set rotation schedule (30 days)
    const rotationDate = new Date();
    rotationDate.setDate(rotationDate.getDate() + 30);
    this.rotationSchedule.set(keyId, rotationDate);
    
    return keyId;
  }

  async getKey(keyId?: string): Promise<Buffer> {
    if (!keyId) {

---

*Content truncated.*

When not to use it

  • When implementing custom cryptographic algorithms
  • When storing encryption keys with encrypted data
  • When using deprecated or weak cryptographic algorithms

Prerequisites

mcp__context7__resolve-library-idmcp__context7__get-library-docs

Limitations

  • Does not support implementing custom cryptographic algorithms.
  • Prohibits storing encryption keys with encrypted data.
  • Discourages using deprecated or weak cryptographic algorithms.

How it compares

This skill offers an AI-powered approach to cryptographic architecture and key management, integrating with Context7 for the latest patterns, unlike traditional manual encryption setup.

Compared to similar skills

moai-security-encryption side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
moai-security-encryption (this skill)0No flagsAdvanced
reverse-engineering-tools734moNo flagsAdvanced
game-hacking-techniques422moNo flagsAdvanced
solidity-security152moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

reverse-engineering-tools

gmh5225

Guide for reverse engineering tools and techniques used in game security research. Use this skill when working with debuggers, disassemblers, memory analysis tools, binary analysis, or decompilers for game security research.

73204

game-hacking-techniques

gmh5225

Guide for game hacking techniques and cheat development. Use this skill when researching memory manipulation, code injection, ESP/aimbot development, overlay rendering, or game exploitation methodologies.

42128

solidity-security

wshobson

Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing contracts, or implementing security measures for blockchain applications.

15115

1password

openclaw

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.

2799

senior-security

davila7

Comprehensive security engineering skill for application security, penetration testing, security architecture, and compliance auditing. Includes security assessment tools, threat modeling, crypto implementation, and security automation. Use when designing security architecture, conducting penetration tests, implementing cryptography, or performing security audits.

3191

ghidra

mitsuhiko

Reverse engineer binaries using Ghidra's headless analyzer. Decompile executables, extract functions, strings, symbols, and analyze call graphs without GUI.

16105

Search skills

Search the agent skills registry