Digital Signature Components for Delphi

Enterprise-grade XAdES, PAdES & CAdES components for Delphi 7 through Delphi 13 and C++Builder. Sign and verify XML invoices, PDF documents and binary data with built-in compliance for 12 European tax authorities.


XAdES XML Signatures

Sign XML documents with XAdES-BES, XAdES-EPES and XAdES-T signatures. Full ETSI EN 319 132-1 compliance with enveloped, detached and enveloping modes.

PAdES PDF Signatures

Embed digital signatures in PDF documents with PAdES-Basic compliance. Incremental updates preserve original PDF content. Configure reason, location and signer name.

CAdES CMS Signatures

CMS/PKCS#7 digital signatures with CAdES-BES, CAdES-T (timestamped) and CAdES-XL (long-term) levels. Sign any binary data or files.

12 Country Profiles

Pre-configured profiles for VeriFactu, TicketBAI, Facturae (Spain), FatturaPA (Italy), SAF-T PT (Portugal), KSeF (Poland), Factur-X (France), e-Factura (Romania), NAV Online (Hungary), Fiskalizacija (Croatia), Peppol (Belgium) and myDATA (Greece).

Signature Verification

Complete verification pipeline: digest validation, RSA/ECDSA signature check, certificate validity, OCSP revocation checking, timestamp validation and XAdES property verification.

Multi-Level Signatures

Support for B-B (Basic), B-T (Timestamp), B-LT (Long Term) and B-LTA (Long Term Archival) signature levels per ETSI standards.

Delphi Classes

Delphi Classes: TsgcDocumentSigner, TsgcPAdESSigner, TsgcXAdESSigner, TsgcCAdESSigner, TsgcSignatureVerifier.Runtime configuration in the Delphi IDE.

Broad Compatibility

Supports Delphi 7, 2007, 2009, 2010, XE through XE8, Delphi 10 Seattle through 10.4 Sydney, Delphi 11 Alexandria, Delphi 12 Athens and Delphi 13. Also supports C++Builder.

Zero Dependencies

No external DLLs or third-party libraries required. Uses Windows CNG/BCrypt for cryptography and WinHTTP for network operations. Pure native Delphi code.

Sign Documents in a Few Lines of Code

Clean, intuitive API. Drop components at design-time or create them at runtime.

XAdES (VeriFactu)

// Sign an XML invoice with VeriFactu profile
var
  vSigner: TsgcDocumentSigner;
  vKeyProvider: TsgcPFXKeyProvider;
begin
  vKeyProvider := TsgcPFXKeyProvider.Create(nil);
  vKeyProvider.FileName := 'certificate.pfx';
  vKeyProvider.Password := 'secret';
  vKeyProvider.LoadFromFile;

  vSigner := TsgcDocumentSigner.Create(nil);
  vSigner.KeyProvider := vKeyProvider;
  vSigner.Profile := spVeriFactu;

  memoSigned.Text := vSigner.SignXML(memoXML.Text);
end;

PAdES (PDF)


// Sign a PDF document with PAdES
var
  vSigner: TsgcPAdESSigner;
  vKeyProvider: TsgcWindowsCertStoreProvider;
begin
  vKeyProvider := TsgcWindowsCertStoreProvider.Create(nil);
  vKeyProvider.SelectCertificateBySubject('My Company');

  vSigner := TsgcPAdESSigner.Create(nil);
  vSigner.KeyProvider := vKeyProvider;
  vSigner.Reason := 'Invoice approval';
  vSigner.Location := 'Madrid, Spain';
  vSigner.SignerName := 'Finance Dept';

  vSigner.SignPDFFile('invoice.pdf', 'invoice_signed.pdf');
end;

CAdES (PDF)


// Sign binary data with CAdES-T (timestamped)
var
  vSigner: TsgcCAdESSigner;
  vKeyProvider: TsgcPFXKeyProvider;
  vTSA: TsgcTSAClient;
begin
  vKeyProvider := TsgcPFXKeyProvider.Create(nil);
  vKeyProvider.FileName := 'cert.pfx';
  vKeyProvider.Password := 'secret';
  vKeyProvider.LoadFromFile;

  vTSA := TsgcTSAClient.Create(nil);
  vTSA.URL := 'http://timestamp.digicert.com';

  vSigner := TsgcCAdESSigner.Create(nil);
  vSigner.KeyProvider := vKeyProvider;
  vSigner.Level := clT;
  vSigner.TSAClient := vTSA;
  vSigner.Detached := True;

  memoSignature.Text := vSigner.SignDataBase64(vData);
end;

Sign Documents in a Few Lines of Code

Clean, intuitive API. Drop components at design-time or create them at runtime.

Download Delphi Trial

Fully functional 30-day trial. No credit card required. Full source code included in paid licenses.

sgcSign Trial Setup for Delphi
sgcSign Delphi Trial

Compiled Demos

Includes a set of compiled demos which shows the use of sgcSign
sgcSign Compiled Demos

Download CBuilder Trial

Fully functional 30-day trial. No credit card required. Full source code included in paid licenses.

sgcSign Trial Setup for CBuilder
sgcSign CBuilder Trial

sgcSign Delphi & CBuilder

Buy now your License to get sgcSign source code: Delphi / CBuilder package includes full source code.

When you buy a license, you'll get access to full source code and 1 Year of updates.

LICENSES

The license allows to install the package in all the machines you use/need but there are limits about the number of concurrent connections from different machines. This means that if you have for example a Single license, you can open the IDE multiple times in a single machine, but if you try to open the IDE in a second machine, it won't let you to work with it. If you need multiple licenses, you can purchase a Team or Site license with a discount.

  • Single License: allows to run the Embarcadero IDE in only 1 machine concurrently (it can run multiple times in a single machine)
  • Team License: allows to run the Embarcadero IDE up to 2 machines concurrently (it can run multiple times in a single machine)
  • Site License: there are no limits about the number of concurrent connections inside a company.

  • 1 Developers
  • 70%
  • 50% Discount
    New Licenses
  • 2 Developers
  • 70%
  • 50% Discount
    New Licenses
  • All Company
  • 70%
  • 50% Discount
    New Licenses