JanW2: PERL: HMAC-SHA-512 berechnen

Beitrag lesen

Hallo,

wenn ich in einem Projekt das Wirecard-Zahlsystem einbinden will, muss dabei ein Parameter "fingerprint" übergeben werden -> https://guides.wirecard.com/request_parameters#requestfingerprint

Dazu steht "To authenticate all requests to the Wirecard Checkout Server the HMAC-SHA-512 construction is used by combining the cryptographic hash function SHA-512 with the secret as the cryptographic key ..."

Es gibt eine Beispielimplementierung unter PHP, wo man den Fingerprint einfach mit $fingerprint = hash_hmac("sha512", $ret, $theSecret); berechnen kann.

Wie bilde ich das in Perl nach?

Danke Jan