EJOSEException Key is too short (96bit), expected (256bit)

I just updated Sparkle to ver 3.22 & XData to ver 5.8. Now I am getting an error in my XData / Web Core project: Project XDataServer.exe raised exception class EJOSEException with message 'Key is too short (96bit), expected (256)'.

For now, I set the TSparkleJwtMiddleware.SkipKeyValidation to True but I am guessing that the right solution is to generate to right size key. How do I do that?

Thank you,

Elias

The mentioned "key" is the JWT secret you provide to Sparkle. So it's you who "created" the secret, all you have to do is use a longer secret, at least 32 bytes/characters.

1 Like

Thank you for the quick response.

By the way, the music demo has that issue now.

Thanks again,
Elias

Yes, thanks, we are aware. Please refer to: Demo "music" does not work for me - #36 by wlandgraf

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.