https://github.com/open-eid/cdoc4j
Java library for working with CDOC documents.
https://github.com/open-eid/cdoc4j
Last synced: 4 months ago
JSON representation
Java library for working with CDOC documents.
- Host: GitHub
- URL: https://github.com/open-eid/cdoc4j
- Owner: open-eid
- License: lgpl-2.1
- Created: 2017-12-13T09:13:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-11-27T12:20:02.000Z (6 months ago)
- Last Synced: 2025-12-08T06:58:02.485Z (6 months ago)
- Language: Java
- Homepage:
- Size: 305 KB
- Stars: 17
- Watchers: 19
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cdoc4j
Java library for working with CDOC documents.
## Origin
This project started with the help of European Regional Development Fund.

# 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
* Java 1.8
* [Unlimited Strength Jurisdiction Policy](https://github.com/open-eid/cdoc4j/wiki/Enabling-Unlimited-Strength-Jurisdiction-Policy)
## How to use it
Take a look at the [examples](https://github.com/open-eid/cdoc4j/wiki/Examples-of-how-to-use-it)
## 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:
```bash
--add-exports jdk.crypto.cryptoki/sun.security.pkcs11=ALL-UNNAMED
```
## Maven Central
You can use the library as a dependency from [Maven Central](http://mvnrepository.com/artifact/org.open-eid.cdoc4j/cdoc4j)
```xml
org.open-eid.cdoc4j
cdoc4j
1.5
```