directory
Version:
v0.8.4
Opens a new window with list of versions in this module.
Published: Nov 14, 2025
License: MIT
Opens a new window with license information.
README
ΒΆ
Context7 Examples for Encx
This directory contains structured examples specifically organized for Context7 users, categorized by use case and complexity level.
Directory Structure
context7/
βββ README.md # This file
βββ 01-basic/ # Beginner examples
β βββ simple_encryption.go # Basic field encryption
β βββ basic_hashing.go # Simple hashing for lookups
β βββ password_security.go # Password hashing
βββ 02-intermediate/ # Real-world patterns
β βββ user_management.go # Complete user system
β βββ searchable_encryption.go # Encrypt + search capability
β βββ database_integration.go # Database operations
βββ 03-advanced/ # Production patterns
β βββ code_generation.go # High-performance approach
β βββ key_rotation.go # Key management
β βββ multi_tenant.go # Multi-tenant encryption
βββ 04-industry/ # Industry-specific examples
βββ healthcare_pii.go # HIPAA compliance
βββ financial_data.go # Financial data protection
βββ ecommerce_customer.go # E-commerce customer data
Quick Navigation by Use Case
π Data Protection
- Personal Information:
01-basic/simple_encryption.go
- Healthcare Data:
04-industry/healthcare_pii.go
- Financial Records:
04-industry/financial_data.go
π Search & Lookup
- User Search:
02-intermediate/searchable_encryption.go
- Customer Lookup:
04-industry/ecommerce_customer.go
- Database Queries:
02-intermediate/database_integration.go
π Authentication
- Password Security:
01-basic/password_security.go
- User Management:
02-intermediate/user_management.go
- Code Generation:
03-advanced/code_generation.go
- Batch Processing:
02-intermediate/database_integration.go
π’ Enterprise
- Key Rotation:
03-advanced/key_rotation.go
- Multi-tenant:
03-advanced/multi_tenant.go
Example Complexity Levels
| Level |
Description |
When to Use |
| Basic |
Single concept examples |
Learning individual features |
| Intermediate |
Real-world patterns |
Building production features |
| Advanced |
Optimization techniques |
Performance/scale requirements |
| Industry |
Compliance-focused |
Specific regulatory needs |
Getting Started
- New to Encx? Start with
01-basic/simple_encryption.go
- Building user system? See
02-intermediate/user_management.go
- Need performance? Check
03-advanced/code_generation.go
- Compliance requirements? Browse
04-industry/ directory
Each example includes:
- β
Complete, runnable code
- π Detailed comments explaining concepts
- π§ͺ Test cases demonstrating usage
- π Performance considerations
- π Security best practices
Context7 Search Patterns
Use these queries to find relevant examples:
- "golang encrypt struct field" β
01-basic/simple_encryption.go
- "searchable encryption golang" β
02-intermediate/searchable_encryption.go
- "password hashing best practices" β
01-basic/password_security.go
- "golang encryption performance" β
03-advanced/code_generation.go
- "HIPAA compliant encryption" β
04-industry/healthcare_pii.go
- "database encryption golang" β
02-intermediate/database_integration.go
Directories
ΒΆ
01-basic
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.