HMAC SHA1 Signature in Java

前端 未结 2 1440
失恋的感觉
失恋的感觉 2021-01-13 05:13

I am trying to interface with a TransUnion web service and I need to provide a HMAC-SHA1 signature to access it.

This example is in the TransUnion documentation:

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-13 06:00

    One thing I noticed is that the hyphens are not normal hyphens. If you copy and paste them, they are not in the ASCII character set. All I can say for sure is that the hash length appears correct. The funny thing is, I couldn't get your code to produce the correct answer, even after putting the correct hyphens in. But no matter. It solved the problem. Huzzah!

提交回复
热议问题