Ready-to-run C# and PowerShell samples for the .NET Digital Signature Library. Every sample is a complete Visual Studio project (or script) included in the library download; the user manual describes all the classes, properties and methods.

PDF digital signatures (PAdES)

Sign PDF documents with visible or invisible signatures, in bulk or without user intervention.

Long-term validation and archiving

Signatures that can be validated years later: time-stamps, validation data and archive time-stamps.

XML digital signatures (XAdES, XMLDSig)

XAdES signatures from B-B to B-LTA, the XML format of the eIDAS signatures and of e-invoicing, and basic XMLDSig signatures.

ASiC-E signature containers

Sign several files of any type together in one .asice container (ETSI EN 319 162), with signatures up to LTA.

CAdES, P7M and P7S signatures

Sign files of any type in the CAdES / PKCS#7 format and verify P7M and P7S files.

HSM, smart cards and cloud keys

Sign with private keys that never leave a smart card, an HSM, Azure Key Vault or a remote signing service.

Time-stamps (RFC 3161)

Add trusted time-stamps to documents.

Office documents (DOCX, XLSX, PPTX)

Sign Word, Excel and PowerPoint documents, with signature lines.

Digital certificates

Create test certificates and check the validity and the revocation of a certificate.

PowerShell scripts

Sign and verify documents from Windows PowerShell, in scripts and scheduled tasks.