Skip to content

A JAVA library for implementing shared functions for encrypting and decryption

License

Notifications You must be signed in to change notification settings

OpenConext/openconext-crypt-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openconext-crypt-java

coverage branches coverage

  • Java 21
  • Maven 3

First install Java 21 with a package manager and then export the correct the JAVA_HOME. For example on macOS:

export JAVA_HOME=/Library/Java/JavaVirtualMachines/openjdk-21.jdk/Contents/Home/

Usage

Create private / public keypair (always use 2048 bit modulus)

openssl genrsa -traditional -out private_key.pem 2048
openssl rsa -pubout -in private_key.pem -out public_key.pem

Convert private key to pkcs8 format in order to import it from Java

openssl pkcs8 -topk8 -in private_key.pem -inform pem -out private_key_pkcs8.pem -outform pem -nocrypt

About

A JAVA library for implementing shared functions for encrypting and decryption

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages