v2.0.2 · .NET 10 · ML-KEM-768 · FIPS 203

تشفير كمّي
غير مسبوق لقواعد البيانات
Quantum-Grade
Database Encryption

أول مكتبة Entity Framework Core بتشفير ما بعد الكم.
سطر واحد يحوّل قاعدة بياناتك إلى حصن رقمي لا يُخترق — حتى بالحواسيب الكمّية.
The first Entity Framework Core library with Post-Quantum Cryptography.
One line transforms your database into an impenetrable digital fortress — even against quantum computers.

$ dotnet add package EntityCrypt.EFCore

📝 بيانات التطبيق📝 Application Data

Id1
Name"Ahmed"
Email"ahmed@mail.com"
SSN"123-45-6789"
CreditCard"4111-XXXX-XXXX"
AES-256 +
ML-KEM-768

🔐 قاعدة البيانات المشفّرة🔐 Encrypted Database

mc_7f2a1
mc_e9b13Kf8Lm2Pq9Rt...
mc_4d3cMLKEM:xB7n9...
mc_a1f0y8Hj2Kl5Mn7...
mc_c2e8PQC:9vWx3Yz...
~1.3µs
زمن التشفيرEncrypt Time
750K+
عملية/ثانيةOps/Sec
FIPS 203
معيار PQCPQC Standard
70+
اختبارTests
0
تغيير بالكودCode Changes
⚛️ القدرات⚛️ Capabilities

تشفير لم يكن ممكناً من قبلEncryption Never Possible Before

حماية شاملة متعددة الطبقات — من البيانات إلى المخطط إلى البنيةComprehensive multi-layer protection — from data to schema to structure

🔒

تشفير شفاف بالكاملFully Transparent Encryption

لا حاجة لتغيير سطر واحد من كود التطبيق. أضف سمة واحدة وكل شيء يُشفّر ويُفكّ تلقائياً.No need to change a single line of application code. Add one attribute and everything is encrypted and decrypted automatically via EF Core interceptors.

⚛️

تشفير ما بعد الكم (PQC)Post-Quantum Cryptography (PQC)

ML-KEM-768 وفق FIPS 203 — المعيار الرسمي من NIST. بياناتك محمية حتى مع ظهور الحواسيب الكمّية.ML-KEM-768 per FIPS 203 — the official NIST standard. Your data is protected today and tomorrow, even against quantum computers.

أداء خارقBlazing Performance

~1.3 ميكروثانية لكل عملية AES-256. أكثر من 750,000 عملية/ثانية.~1.3 µs per AES-256 operation. Over 750,000 ops/sec. Imperceptible in production.

👁️‍🗨️

إخفاء المخطط الكاملFull Schema Obfuscation

أسماء الجداول والأعمدة ومفاتيح PK/FK تُشفّر إلى رموز عشوائية.Table names, column names, and PK/FK keys are encrypted into random tokens. Attackers see only digital chaos.

علاقات سليمةIntact Relationships

العلاقات بين الجداول تبقى تعمل بشكل طبيعي رغم تشفير كل شيء.Table relationships work normally despite full encryption. JOINs and FKs function without errors.

🗄️

كل قواعد البياناتAll Databases

SQL Server، PostgreSQL، SQLite، MySQL، Oracle — أي قاعدة بيانات يدعمها EF Core.SQL Server, PostgreSQL, SQLite, MySQL, Oracle — any database supported by EF Core works automatically.

🛡️ مستويات الحماية🛡️ Protection Levels

ثلاث طبقات من الدرع الكمّيThree Layers of Quantum Shielding

اختر المستوى المناسب لحساسية بياناتكChoose the right level for your data sensitivity

سريعFast

⚡ Classical

AES-256-CBC
~1.3 µs encrypt · ~3.3 µs decrypt
الأسرع — للبيانات الحساسة القياسية. 256-bit قوة تشفير عسكرية.Fastest — for standard sensitive data. 256-bit military-grade encryption strength.
⭐ موصى به⭐ Recommended

🔀 Hybrid

AES-256 + ML-KEM-768
~30 µs encrypt · ~76 µs decrypt
الأفضل — حماية كلاسيكية وكمّية معاً. إذا فُكّ أحدهما يبقى الآخر.Best — classical and quantum protection combined. If one breaks, the other holds.
الخيار الأمثل للإنتاجOptimal for Production
المستقبلFuture-Proof

⚛️ Post-Quantum

ML-KEM-768 (FIPS 203)
~49 µs keygen · ~25 µs encap
الأقوى — مقاوم كلياً للحواسيب الكمّية. معيار NIST الرسمي.Strongest — fully quantum-computer resistant. Official NIST standard.
🚀 البدء السريع🚀 Quick Start

ثلاث خطوات إلى التشفير الكمّيThree Steps to Quantum Encryption

سطر واحد يُغيّر كل شيءOne Line Changes Everything

أضف سمات التشفير، فعّل EntityCrypt، واستخدم EF Core كالمعتاد.Add encryption attributes, activate EntityCrypt, and use EF Core as usual. Encryption and decryption happen in a completely invisible layer.

  • 1عرّف كياناتك مع سمة [EncryptedTable]Define entities with [EncryptedTable]
  • 2استدعِ .UseEntityCryptClassical()Call .UseEntityCryptClassical()
  • 3استخدم EF Core كالمعتاد — بدون أي تغييرUse EF Core as usual — zero changes needed
Program.cs
// 1. Define encrypted entities
[EncryptedTable]
public class Customer
{
    public int Id { get; set; }

    [Encrypted]
    public string Name { get; set; }

    [Encrypted(Level = EncryptionLevel.Hybrid)]
    public string SSN { get; set; }
}

// 2. Activate quantum encryption
options.UseSqlite("Data Source=app.db")
       .UseEntityCryptClassical("key");

// 3. Use normally — 100% transparent!
db.Customers.Add(new { Name = "Ahmed", SSN = "123-45-6789" });
await db.SaveChangesAsync();
// Auto-encrypted in database ✓
📜 الامتثال والمعايير📜 Compliance & Standards

امتثال معايير الأمن السيبراني العالمية والمحليةGlobal & Regional Cybersecurity Standards Compliance

مصمم للامتثال الكامل لأعلى معايير حماية البيانات والتشفيرDesigned for full compliance with the highest data protection and encryption standards

🇺🇸 NIST

معايير المعهد الوطني للمعايير والتقنيةNational Institute of Standards & Technology

امتثال كامل لمعايير NIST للتشفير والتشفير ما بعد الكم.Full compliance with NIST cryptographic and post-quantum standards.

🇸🇦 NCA

الهيئة الوطنية للأمن السيبرانيNational Cybersecurity Authority (Saudi Arabia)

متوافق مع ضوابط الأمن السيبراني للأنظمة الحساسة والبيانات الوطنية.Compliant with cybersecurity controls for sensitive systems and national data.

🇪🇺 GDPR / PDPL

حماية البيانات الشخصيةPersonal Data Protection

يلبي متطلبات التشفير في GDPR الأوروبي ونظام حماية البيانات الشخصية السعودي.Meets encryption requirements of EU GDPR and Saudi PDPL.

  • المادة 32 GDPR — التدابير التقنية الملائمةArticle 32 GDPR — Appropriate Technical Measures📄 ARCHITECTURE.md — Value Encryption
  • المادة 25 GDPR — حماية البيانات بالتصميمArticle 25 GDPR — Data Protection by Design📂 SchemaConvention.cs:25-57
  • نظام PDPL — تشفير البيانات الشخصية أثناء التخزينPDPL — Encryption of personal data at rest📂 SchemaEncryptor.cs:15-39
  • الحق في الخصوصية — إخفاء المخطط يمنع التعرّف على البياناتPrivacy Right — Schema obfuscation prevents data identification📂 SchemaEncryptor.cs:33-39
💳 PCI DSS 4.0

معيار أمان بيانات صناعة بطاقات الدفعPayment Card Industry Data Security Standard

يحقق متطلبات PCI DSS لحماية بيانات حامل البطاقة بأعلى مستوى.Meets PCI DSS requirements for cardholder data protection at the highest level.

🏥 HIPAA

قانون قابلية نقل التأمين الصحيHealth Insurance Portability & Accountability Act

يوفر الضمانات التقنية المطلوبة لحماية المعلومات الصحية (ePHI).Provides required technical safeguards for electronic Protected Health Information (ePHI).

🌐 ISO/IEC

المعايير الدوليةInternational Standards

متوافق مع معايير ISO/IEC الدولية لأمن المعلومات والتشفير.Compliant with ISO/IEC international standards for information security and cryptography.

🏗️ البنية الهندسية للتشفير — مخطط الطبقات🏗️ Encryption Architecture — Layered Diagram

طبقة التطبيقApplication Layer EF Core DbContext · LINQ Queries · SaveChanges()
طبقة الاعتراضInterceptor Layer IDbCommandInterceptor · IMaterializationInterceptor
محرك التشفيرEncryption Engine AES-256-CBC · ML-KEM-768 · Hybrid · Merkle Tree
إخفاء المخططSchema Obfuscation Table Names · Column Names · PK/FK Identifiers
طبقة تحويل النموذجModel Transform Layer IModelCustomizer · Convention · Configuration
قاعدة البيانات المشفّرةEncrypted Database SQL Server · PostgreSQL · SQLite · MySQL · Oracle
بيانات نصيةPlaintext ✓ مشفر بالكامل✓ Fully Encrypted

🔑 دورة حياة إدارة المفاتيح — وفق SP 800-57🔑 Key Lifecycle Management — Per SP 800-57

🔐

توليد المفتاحKey Generation

CSPRNG · ML-KEM-768 KeyGen · AES-256 · مفاتيح مشتقةCSPRNG · ML-KEM-768 KeyGen · AES-256 · Derived Keys

📦

تغليف المفتاحKey Encapsulation

ML-KEM Encapsulate · مفتاح مشترك · كبسولة مشفّرةML-KEM Encapsulate · Shared Secret · Encrypted Capsule

🔄

استخدام المفتاحKey Usage

تشفير/فك تشفير · توقيع · تحقق · عدم إعادة استخدام IVEncrypt/Decrypt · Sign · Verify · No IV Reuse

🗑️

إتلاف المفتاحKey Destruction

IDisposable · مسح الذاكرة · GC Pinning · عدم تسريبIDisposable · Memory Wipe · GC Pinning · Zero Leakage

📊 مصفوفة الامتثال التفصيلية📊 Detailed Compliance Matrix

المعيارStandard المتطلبRequirement ميزة EntityCryptEntityCrypt Feature الكود المصدريSource Evidence الحالةStatus
FIPS 203Post-Quantum KEMML-KEM-768 (Kyber)
FIPS 197AES EncryptionAES-256-CBC / AES-256-GCM
SP 800-57Key ManagementCSPRNG + HKDF + IDisposable + Memory Wipe
SP 800-131AAlgorithm TransitionHybrid Mode (Classical + PQC)
NCA ECC-1Encryption ControlsMulti-layer encryption engine
NCA DCCData Classification3-level encryption (Classical/Hybrid/PQC)
GDPR Art.32Technical MeasuresTransparent encryption at rest
GDPR Art.25Privacy by DesignSchema obfuscation + auto encryption
PDPLData EncryptionFull column + schema encryption
PCI DSS 3.5PAN EncryptionAES-256 / Hybrid per-column
PCI DSS 6.2Secure SoftwareSBOM (CycloneDX) + SHA-256 checksums
HIPAA §164.312ePHI EncryptionAES-256 / PQC encryption at rest
HIPAA §164.312(c)Integrity ControlsMerkle Tree verification
ISO 27001ISMS ControlsA.10 Cryptography controls
ISO 19790Crypto Modules.NET Cryptography + ML-KEM
SOC 2Data ProtectionEncryption + audit trail + SBOM
SAMA CSFCrypto ControlsMulti-algorithm encryption
CCPA/CPRAConsumer PrivacyData encryption + pseudonymization
📊 الأداء📊 Performance

سرعة لا تُصدَّقUnbelievable Speed

قياسات BenchmarkDotNet حقيقية على .NET 10Real BenchmarkDotNet measurements on .NET 10

BenchmarkDotNet v0.14.0 .NET 10.0 · Release · x64
MethodMeanAllocated
Classical Encrypt1.27 µs1.9 KB
Classical Decrypt3.30 µs7.0 KB
PQC KeyGen (ML-KEM-768)48.54 µs6.4 KB
PQC Encapsulate24.86 µs1.5 KB
PQC Decapsulate36.53 µs376 B
Hybrid Encrypt29.50 µs18.2 KB
Hybrid Decrypt75.87 µs38.6 KB
🏰 الأمان🏰 Security

حصن رقمي متعدد الطبقاتMulti-Layered Digital Fortress

ضمانات أمنية مدمجة في كل مرحلة من CI/CDBuilt-in security guarantees at every CI/CD stage

🔍

فحص ثغرات تلقائيAutomated Vulnerability Scanning

كل PR يُفحص — حظر تلقائي عند High/CriticalEvery PR scanned — auto-blocked on High/Critical

🛡️

بوابة أمنية قبل النشرSecurity Gate Before Publish

لا يُنشر شيء على NuGet بدون اجتياز الفحصNothing published to NuGet without passing audit

🧪

70+ اختبار70+ Tests

وحدة وتكامل مع تغطية شاملةUnit and integration with comprehensive coverage

📋

SBOM لكل إصدارSBOM Per Release

CycloneDX — قائمة مواد برمجية كاملةCycloneDX — complete Software Bill of Materials

🔏

SHA-256 ChecksumsSHA-256 Checksums

للتحقق من سلامة كل حزمةVerify integrity of every package

📅

تدقيق أسبوعيWeekly Audit

فحص مجدول + issue تلقائي عند اكتشاف ثغراتScheduled scan + auto-issue on vulnerability detection

📦 الحزم📦 Packages

التثبيت من NuGetInstall from NuGet

EntityCrypt.EFCore

الحزمة الرئيسية — تكامل EF Core الشفاف مع اعتراضات التشفير وسمات الكيانات وتشفير المخطط.Main package — transparent EF Core integration with encryption interceptors, entity attributes, and schema obfuscation.

dotnet add package EntityCrypt.EFCore

EntityCrypt.Core

محرك التشفير المستقل — AES-256، ML-KEM-768، تشفير هجين، شجرة Merkle.Standalone encryption engine — AES-256, ML-KEM-768, Hybrid encryption, Merkle Tree.

dotnet add package EntityCrypt.Core

ابدأ بحماية بياناتك بالتشفير الكمّي اليوم Start Protecting Your Data with Quantum Encryption Today

سطر واحد لتحويل قاعدة بياناتك من مكشوفة إلى حصن رقمي لا يُخترق One line to transform your database from exposed to an impenetrable digital fortress

📦 تثبيت من NuGet📦 Install from NuGet 📖 التوثيق الكامل📖 Full Documentation