hmac

    2熱度

    4回答

    我正在嘗試使用sha-512來計算hmac。 Perl代碼: use Digest::SHA qw(hmac_sha512_hex); $key = "\x0b"x20; $data = "Hi There"; $hash = hmac_sha512_hex($data, $key); print "$hash\n"; ,並給出了 87aa7cdea5ef619d4ff0b4241