Closed LiveNathan closed 1 month ago
You should change from 32 to 16
openssl rand -base64 16
Let me know if it works.
I had the same issue and I did this change and it worked for me, I don't remember the reason why I did it.
Thanks @FadiNeh ! Unfortunately, I'm not in a place ATM where I can spend some time on testing this out. I'll close this issue for now.
I generated the key with
openssl rand -base64 32
and added it to my .env file. Unsure what I'm missing here.2024-06-27T12:10:21.077-05:00 ERROR 53040 --- [Genie] [ XNIO-1 task-2] c.d.genie.aop.logging.LoggingAspect : Exception in com.devoxx.genie.service.security.SecurityKeyService.encrypt() with cause = 'java.security.InvalidKeyException: Invalid AES key length: 44 bytes' and exception = 'Error while encrypting the value'
com.devoxx.genie.service.security.EncryptionException: Error while encrypting the value at com.devoxx.genie.service.security.SecurityKeyService.encrypt(SecurityKeyService.java:45) ~[classes/:na]