HMAC-SHA256 Algorithm for signature calculation

后端 未结 9 740
北海茫月
北海茫月 2020-12-12 19:27

I am trying to create a signature using the HMAC-SHA256 algorithm and this is my code. I am using US ASCII encoding.

final Charset asciiCs = Charset.forName(         


        
9条回答
  •  甜味超标
    2020-12-12 20:19

    The 0x just denotes that the characters after it represent a hex string.

    0x1A == 1Ah == 26 == 1A
    

    So the 0x is just to clarify what format the output is in, no need to worry about it.

提交回复
热议问题