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
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.