* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ namespace PrestaShop\Module\Assistant\Security; if (!defined('_PS_VERSION_')) { exit; } class Verify { public static function verifyPayload($message, $signature, $public_key) { $signature = base64_decode($signature); return openssl_verify($message, $signature, $public_key, OPENSSL_ALGO_SHA256) === 1; } }