Skip to main content
Skip table of contents

Digital signatures - chapter 1

These examples were written in the context of Chapter 1 - "Understanding the concept of digital signatures" of the Digital Signatures for PDF documents eBook.


c1_01_digestdefault

 An example showing how to use the MessageDigest class:

##GITHUB:https://github.com/itext/i7js-signatures/blob/develop/src/test/java/com/itextpdf/samples/signatures/chapter01/C1_01_DigestDefault.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.publications/itext.publications.signatures/itext/samples/signatures/chapter01/C1_01_DigestDefault.cs##


c1_02_digestbc

An example demonstrating the use of the Bouncy Castle library:

##GITHUB:https://github.com/itext/i7js-signatures/blob/develop/src/test/java/com/itextpdf/samples/signatures/chapter01/C1_02_DigestBC.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.publications/itext.publications.signatures/itext/samples/signatures/chapter01/C1_02_DigestBC.cs##

c1_03_encryptdecrypt

An example of a simple class to encrypt and decrypt messages:

##GITHUB:https://github.com/itext/i7js-signatures/blob/develop/src/test/java/com/itextpdf/samples/signatures/chapter01/C1_03_EncryptDecrypt.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.publications/itext.publications.signatures/itext/samples/signatures/chapter01/C1_03_EncryptDecrypt.cs##

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.