Skip to content

open-eid/cdoc4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cdoc4j

Java library for working with CDOC documents.

Origin

This project started with the help of European Regional Development Fund.

Euroopa Regionaalarengu Fond

Build status

Build status

Features

  • Creation of CDOC documents containing encrypted files
  • Decryption of files from CDOC documents

Supported formats

  • CDOC 1.0 - AES-128-CBC, only RSA recipients (deprecated)
  • CDOC 1.1 - AES-256-GCM, RSA and EC recipients (Recommended)

Requirements

How to use it

Take a look at the examples

Decrypting a file using a smart card with Java version 17 or higher

Using a smart card to decrypt a file while using Java 17 or a later version, an extra JVM argument is required:

--add-exports jdk.crypto.cryptoki/sun.security.pkcs11=ALL-UNNAMED

Maven Central

You can use the library as a dependency from Maven Central

<dependency>
    <groupId>org.open-eid.cdoc4j</groupId>
    <artifactId>cdoc4j</artifactId>
    <version>1.5</version>
</dependency>