Spring Security Spring安全.签名算法H512异常

laximzn5  于 2022-12-23  发布在  Spring
关注(0)|答案(1)|浏览(149)

enter image description here

This method of creating a token for authentication. 
But I have a question, which signature algorithm should I use? 
I tried to use H512 but it was considered incorrect.
I tried to change the algorithm to H256, but with it the method also gave the wrong result.

我试着在论坛上寻找答案,他们谈到改变方法本身,但我需要通过这个方法来做,在这种情况下应该怎么做?

ghg1uchk

ghg1uchk1#

我也遇到过类似的情况,问题出在密文上,或者更确切地说,出在它的维数上。改变密文。或者你需要改变签名方法,换一个更小的密文。

相关问题