본문 바로가기
오류

io.jsonwebtoken.security.WeakKeyException: The signing key's size is 192 bits which is not secure enough for the HS256 algorithm.

by 신방동불주먹 2023. 5. 23.

JWT 암호화 알고리즘을 사용할 때 secret key가 256bit를 넘겨야되는데 256bit 보다 작기 때문에 발생하는 오류

 

 

secretKey를 이렇게 길게 바꿔주면 된다.

 private String secretKey = "길이설정";