Generating Encryption Keys
Kuali Enterprise Workflow uses an Encryption Service to encrypt document content. This service takes in a parameter encryption.key
for encrypting and decrypting data. Each application integrating into Rice must generate its own encryption key. IET provides a key generator as part of the IET Commons Utils project.
To generate an encryption key:
- Get the
iet-commons-utils
v1.1.0 JAR from https://psl-95.ucdavis.edu/repo/edu/ucdavis/iet/commons/iet-commons-utils/1.1.0/ - Get the
commons-codec
v1.3 jar from https://psl-95.ucdavis.edu/repo/commons-codec/commons-codec/1.3/ - Make sure these two JARs are in the same directory
- From the command line, execute:
[<directory where the 2 JARs are>]$ java -classpath iet-commons-utils-1.1.0.jar;commons-codec-1.3.jar edu.ucdavis.iet.commons.utils.encryption.AESKeyGenerator
- You'll get output like:
Generated Key: OS2vyFblahKg0Ta1/rQBGQ==
See KEW Service Configuration for implementing the encryption key.