HaugrNet / eds

Cryptographic Web Share
https://haugr.net/
Apache License 2.0
6 stars 0 forks source link

Deleting Keys with Java 17 #77

Closed knjensen closed 2 years ago

knjensen commented 2 years ago

As of Java 17, the access to the internal byte array in the key Object is no longer permitted using reflection:

java.lang.reflect.InaccessibleObjectException: Unable to make field private byte[] javax.crypto.spec.SecretKeySpec.key accessible: module java.base does not "opens javax.crypto.spec" to unnamed module

Goal is to find a workaround for this issue.

knjensen commented 2 years ago

Removed support for destroyable,