How to Generate HMAC MD5 In Android?

前端 未结 2 1984
无人及你
无人及你 2020-12-16 08:59

I am new in this Field!I have this Message and Key also i want HMAC MD5 using this two so how it is possible if possible then give some example or sample code of this.The Gi

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-16 09:22

    Look at the javax.crypto.Mac class. Try Mac.getInstance("HmacMD5"); and then use the init method with your key and then use the update and doFinal methods just as you would with a MessageDigest object.

提交回复
热议问题