note 128552 added to function.hash-hmac

From: Date: Thu, 18 May 2023 15:10:41 +0000
Subject: note 128552 added to function.hash-hmac
Groups: php.notes 
Request: Send a blank email to php-notes+get-220506@lists.php.net to get a copy of this message
I wanted to mention, when implementing Monetico payment (monetico-services.com / monetico-paiement.fr), be sure to use hex2bin($key) before passing it to hash_hmac. It's just like <<pbuttelli at tutanota dot com>> stated in another comment here: https://www.php.net/manual/en/function.hash-hmac.php#128038 Although they don't state it at their docs, it's necessary for the right digerst / MAC to be created. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.13.130 (proxied: 2a02:586:493d:3b56:1d55:5a81:af8:2ab1) ---- Manual Page -- https://php.net/manual/en/function.hash-hmac.php Edit -- https://main.php.net/note/edit/128552 Del: integrated -- https://main.php.net/note/delete/128552/integrated Del: useless -- https://main.php.net/note/delete/128552/useless Del: bad code -- https://main.php.net/note/delete/128552/bad+code Del: spam -- https://main.php.net/note/delete/128552/spam Del: non-english -- https://main.php.net/note/delete/128552/non-english Del: in docs -- https://main.php.net/note/delete/128552/in+docs Del: other reasons-- https://main.php.net/note/delete/128552 Reject -- https://main.php.net/note/reject/128552 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220506) next »