nMRTD 0.8.12-alpha.1
dotnet add package nMRTD --version 0.8.12-alpha.1
NuGet\Install-Package nMRTD -Version 0.8.12-alpha.1
<PackageReference Include="nMRTD" Version="0.8.12-alpha.1" />
<PackageVersion Include="nMRTD" Version="0.8.12-alpha.1" />
<PackageReference Include="nMRTD" />
paket add nMRTD --version 0.8.12-alpha.1
#r "nuget: nMRTD, 0.8.12-alpha.1"
#:package nMRTD@0.8.12-alpha.1
#addin nuget:?package=nMRTD&version=0.8.12-alpha.1&prerelease
#tool nuget:?package=nMRTD&version=0.8.12-alpha.1&prerelease
nMRTD
Reads electronic passports and ID cards (ICAO Doc 9303 eMRTDs) with contactless PC/SC readers, in .NET.
Overview
nMRTD is a C# port of JMRTD, the reference Java implementation of the MRTD standards. It opens a secure channel with the chip of a biometric passport or electronic ID card, reads its data groups, and checks that the data is genuine and that the chip is not a copy.
Status: an early-stage port. The protocols and the data model are covered by an automated test suite, but the library has been tried on only a few real documents. Validate it for your own use case.
Features
- Access control: BAC keyed from the MRZ, and PACE keyed from the MRZ or the CAN (Generic, Integrated and Chip Authentication Mapping; DH and ECDH; 3DES and AES).
- Secure messaging with 3DES and AES on every command after access control.
- Extended Access Control: Chip Authentication and Terminal Authentication (BSI TR-03110), with Card Verifiable certificates.
- Active Authentication, to prove that the chip is not a copy.
- Passive Authentication: the data group hashes and the EF.SOD signature (CMS), with RSA, RSASSA-PSS and ECDSA.
- Data groups: EF.COM, EF.SOD, EF.CardAccess, EF.CardSecurity and DG1 to DG16 (MRZ, face, fingerprints, iris, personal and document details, security infos).
- Biometrics: ISO/IEC 19794 and ISO/IEC 39794 face, finger and iris records, in CBEFF structures.
- Safe on malformed chip data: invalid lengths and structures are rejected with exceptions, instead of exhausting memory.
- Cross-platform smart card access through PC/SC: WinSCard on Windows, PC/SC-lite on Linux and macOS.
- Targets:
.NET 10,.NET 8,.NET 6,.NET Framework 4.7.2and.NET Framework 4.6.2. - AOT ready: works in Native AOT applications on .NET 8 and 10, and supports trimming on .NET 6 and later.
Documentation
The README on GitHub has code examples for BAC and PACE, the command-line tool and the documents tested so far. DOCUMENTATION.md describes the architecture and the protocols, and the release notes say which JMRTD and SCUBA code each version is based on.
License
nMRTD is a derivative work of JMRTD, by the JMRTD team, to whom all credit for the original design belongs; it is not affiliated with or endorsed by the JMRTD project. Like JMRTD, it is distributed under the GNU Lesser General Public License v3.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.2
- BouncyCastle.Cryptography (>= 2.6.2)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- PCSC (>= 7.0.1)
- PCSC.Iso7816 (>= 7.0.1)
- Portable.System.DateTimeOnly (>= 9.0.0)
- System.Memory (>= 4.6.3)
-
.NETFramework 4.7.2
- BouncyCastle.Cryptography (>= 2.6.2)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- PCSC (>= 7.0.1)
- PCSC.Iso7816 (>= 7.0.1)
- Portable.System.DateTimeOnly (>= 9.0.0)
- System.Memory (>= 4.6.3)
-
net10.0
- BouncyCastle.Cryptography (>= 2.6.2)
- PCSC (>= 7.0.1)
- PCSC.Iso7816 (>= 7.0.1)
-
net6.0
- BouncyCastle.Cryptography (>= 2.6.2)
- PCSC (>= 7.0.1)
- PCSC.Iso7816 (>= 7.0.1)
-
net8.0
- BouncyCastle.Cryptography (>= 2.6.2)
- PCSC (>= 7.0.1)
- PCSC.Iso7816 (>= 7.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.8.12-alpha.1 | 0 | 11/28/2026 |
| 0.8.11-alpha | 0 | 11/28/2026 |
| 0.8.10-alpha | 43 | 11/28/2026 |
| 0.8.9-alpha | 49 | 11/27/2026 |
| 0.8.8-alpha | 62 | 11/23/2026 |
| 0.8.7-alpha | 54 | 11/23/2026 |
| 0.8.6-alpha | 71 | 11/22/2026 |
| 0.8.5-alpha | 60 | 11/22/2026 |
| 0.8.4-alpha | 64 | 11/22/2026 |
| 0.8.2-alpha | 53 | 11/22/2026 |
| 0.8.1-alpha | 60 | 11/22/2026 |
| 0.8.0-alpha | 55 | 11/21/2026 |
| 0.7.1-alpha | 56 | 11/21/2026 |
| 0.5.0-alpha | 55 | 11/21/2026 |
| 0.4.1-alpha | 108 | 9/1/2026 |
| 0.4.0-alpha | 84 | 9/1/2026 |
| 0.3.0-alpha | 89 | 8/26/2026 |
| 0.2.0-alpha | 94 | 8/23/2026 |