أول مكتبة 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
حماية شاملة متعددة الطبقات — من البيانات إلى المخطط إلى البنيةComprehensive multi-layer protection — from data to schema to structure
لا حاجة لتغيير سطر واحد من كود التطبيق. أضف سمة واحدة وكل شيء يُشفّر ويُفكّ تلقائياً.No need to change a single line of application code. Add one attribute and everything is encrypted and decrypted automatically via EF Core interceptors.
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.
~1.3 ميكروثانية لكل عملية AES-256. أكثر من 750,000 عملية/ثانية.~1.3 µs per AES-256 operation. Over 750,000 ops/sec. Imperceptible in production.
أسماء الجداول والأعمدة ومفاتيح PK/FK تُشفّر إلى رموز عشوائية.Table names, column names, and PK/FK keys are encrypted into random tokens. Attackers see only digital chaos.
العلاقات بين الجداول تبقى تعمل بشكل طبيعي رغم تشفير كل شيء.Table relationships work normally despite full encryption. JOINs and FKs function without errors.
SQL Server، PostgreSQL، SQLite، MySQL، Oracle — أي قاعدة بيانات يدعمها EF Core.SQL Server, PostgreSQL, SQLite, MySQL, Oracle — any database supported by EF Core works automatically.
اختر المستوى المناسب لحساسية بياناتكChoose the right level for your data sensitivity
أضف سمات التشفير، فعّل EntityCrypt، واستخدم EF Core كالمعتاد.Add encryption attributes, activate EntityCrypt, and use EF Core as usual. Encryption and decryption happen in a completely invisible layer.
[EncryptedTable]Define entities with [EncryptedTable].UseEntityCryptClassical()Call .UseEntityCryptClassical()// 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 ✓
مصمم للامتثال الكامل لأعلى معايير حماية البيانات والتشفيرDesigned for full compliance with the highest data protection and encryption standards
امتثال كامل لمعايير NIST للتشفير والتشفير ما بعد الكم.Full compliance with NIST cryptographic and post-quantum standards.
متوافق مع ضوابط الأمن السيبراني للأنظمة الحساسة والبيانات الوطنية.Compliant with cybersecurity controls for sensitive systems and national data.
يلبي متطلبات التشفير في GDPR الأوروبي ونظام حماية البيانات الشخصية السعودي.Meets encryption requirements of EU GDPR and Saudi PDPL.
يحقق متطلبات PCI DSS لحماية بيانات حامل البطاقة بأعلى مستوى.Meets PCI DSS requirements for cardholder data protection at the highest level.
يوفر الضمانات التقنية المطلوبة لحماية المعلومات الصحية (ePHI).Provides required technical safeguards for electronic Protected Health Information (ePHI).
متوافق مع معايير ISO/IEC الدولية لأمن المعلومات والتشفير.Compliant with ISO/IEC international standards for information security and cryptography.
CSPRNG · ML-KEM-768 KeyGen · AES-256 · مفاتيح مشتقةCSPRNG · ML-KEM-768 KeyGen · AES-256 · Derived Keys
ML-KEM Encapsulate · مفتاح مشترك · كبسولة مشفّرةML-KEM Encapsulate · Shared Secret · Encrypted Capsule
تشفير/فك تشفير · توقيع · تحقق · عدم إعادة استخدام IVEncrypt/Decrypt · Sign · Verify · No IV Reuse
IDisposable · مسح الذاكرة · GC Pinning · عدم تسريبIDisposable · Memory Wipe · GC Pinning · Zero Leakage
| المعيارStandard | المتطلبRequirement | ميزة EntityCryptEntityCrypt Feature | الكود المصدريSource Evidence | الحالةStatus |
|---|---|---|---|---|
| FIPS 203 | Post-Quantum KEM | ML-KEM-768 (Kyber) | MatryoshkaPqc.cs:24-96 | ✓ |
| FIPS 197 | AES Encryption | AES-256-CBC / AES-256-GCM | AES256EncryptionProvider.cs:12-157 MatryoshkaValueCryptor.cs:75-116 | ✓ |
| SP 800-57 | Key Management | CSPRNG + HKDF + IDisposable + Memory Wipe | SecureRandomGenerator.cs:22-79 MerkleKeyTree.cs:54-60 | ✓ |
| SP 800-131A | Algorithm Transition | Hybrid Mode (Classical + PQC) | HybridEncryptionProvider.cs:55-133 | ✓ |
| NCA ECC-1 | Encryption Controls | Multi-layer encryption engine | MatryoshkaValueCryptor.cs:75-116 ValueConverterFactory.cs:17-110 | ✓ |
| NCA DCC | Data Classification | 3-level encryption (Classical/Hybrid/PQC) | ValueConverterFactory.cs:17-110 | ✓ |
| GDPR Art.32 | Technical Measures | Transparent encryption at rest | MatryoshkaValueCryptor.cs:75-116 | ✓ |
| GDPR Art.25 | Privacy by Design | Schema obfuscation + auto encryption | SchemaEncryptor.cs:15-39 SchemaConvention.cs:25-57 | ✓ |
| PDPL | Data Encryption | Full column + schema encryption | SchemaEncryptor.cs:15-39 ValueCryptor.cs:75-116 | ✓ |
| PCI DSS 3.5 | PAN Encryption | AES-256 / Hybrid per-column | MatryoshkaValueCryptor.cs:75-116 | ✓ |
| PCI DSS 6.2 | Secure Software | SBOM (CycloneDX) + SHA-256 checksums | security-audit.yml:129-158 publish-nuget.yml:102-106 | ✓ |
| HIPAA §164.312 | ePHI Encryption | AES-256 / PQC encryption at rest | MatryoshkaValueCryptor.cs:75-116 MatryoshkaPqc.cs:24-96 | ✓ |
| HIPAA §164.312(c) | Integrity Controls | Merkle Tree verification | MerkleKeyTree.cs:210-254 | ✓ |
| ISO 27001 | ISMS Controls | A.10 Cryptography controls | AES256EncryptionProvider.cs:12-157 MatryoshkaKeyVault.cs:28-72 | ✓ |
| ISO 19790 | Crypto Modules | .NET Cryptography + ML-KEM | AES256EncryptionProvider.cs:12-157 MatryoshkaPqc.cs:24-96 | ✓ |
| SOC 2 | Data Protection | Encryption + audit trail + SBOM | security-audit.yml:35-77 | ✓ |
| SAMA CSF | Crypto Controls | Multi-algorithm encryption | HybridEncryptionProvider.cs:55-133 | ✓ |
| CCPA/CPRA | Consumer Privacy | Data encryption + pseudonymization | SchemaEncryptor.cs:15-39 | ✓ |
قياسات BenchmarkDotNet حقيقية على .NET 10Real BenchmarkDotNet measurements on .NET 10
| Method | Mean | Allocated |
|---|---|---|
| Classical Encrypt | 1.27 µs | 1.9 KB |
| Classical Decrypt | 3.30 µs | 7.0 KB |
| PQC KeyGen (ML-KEM-768) | 48.54 µs | 6.4 KB |
| PQC Encapsulate | 24.86 µs | 1.5 KB |
| PQC Decapsulate | 36.53 µs | 376 B |
| Hybrid Encrypt | 29.50 µs | 18.2 KB |
| Hybrid Decrypt | 75.87 µs | 38.6 KB |
ضمانات أمنية مدمجة في كل مرحلة من CI/CDBuilt-in security guarantees at every CI/CD stage
كل PR يُفحص — حظر تلقائي عند High/CriticalEvery PR scanned — auto-blocked on High/Critical
لا يُنشر شيء على NuGet بدون اجتياز الفحصNothing published to NuGet without passing audit
وحدة وتكامل مع تغطية شاملةUnit and integration with comprehensive coverage
CycloneDX — قائمة مواد برمجية كاملةCycloneDX — complete Software Bill of Materials
للتحقق من سلامة كل حزمةVerify integrity of every package
فحص مجدول + issue تلقائي عند اكتشاف ثغراتScheduled scan + auto-issue on vulnerability detection
الحزمة الرئيسية — تكامل EF Core الشفاف مع اعتراضات التشفير وسمات الكيانات وتشفير المخطط.Main package — transparent EF Core integration with encryption interceptors, entity attributes, and schema obfuscation.
dotnet add package EntityCrypt.EFCoreمحرك التشفير المستقل — AES-256، ML-KEM-768، تشفير هجين، شجرة Merkle.Standalone encryption engine — AES-256, ML-KEM-768, Hybrid encryption, Merkle Tree.
dotnet add package EntityCrypt.Coreسطر واحد لتحويل قاعدة بياناتك من مكشوفة إلى حصن رقمي لا يُخترق One line to transform your database from exposed to an impenetrable digital fortress