Signing a string with HMAC-MD5 with C#
问题 I got the following HMAC key (in hexadecimal format): 52320e181a481f5e19507a75b3cae4d74d5cfbc328f7f2b738e9fb06b2e05b55b632c1c3d331dcf3baacae8d3000594f839d770f2080910b52b7b8beb3458c08 I need to sign this string: 1100002842850CHF91827364 The result should be this (in hexadecimal format): 2ad2f79111afd818c1dc0916d824b0a1 I have the following code: string key = "52320e181a481f5e19507a75b3cae4d74d5cfbc328f7f2b738e9fb06b2e05b55b632c1c3d331dcf3baacae8d3000594f839d770f2080910b52b7b8beb3458c08";