jwt오류
-
jwt 오류 ) hmac 알고리즘으로 인한 오류web( jsp, servlet )/jsp 2024. 7. 16. 15:21
직접 암호화 키를 만들어서 적용시켜보려고 했는데 500에러가 나왔다. 에러 메시지는 아래와 같았다.The specified key byte array is 104 bits which is not secure enough for any JWT HMAC-SHA algorithm. The JWT JWA Specification (RFC 7518, Section 3.2) states that keys used with HMAC-SHA algorithms MUST have a size >= 256 bits (the key size must be greater than or equal to the hash output size).Consider using the io.jsonwebtoken.security.Keys..