SILENT KILLERPanel

Current Path: > home > codekrsu > > escapematrixonline.com > wp-content > plugins > > wp-statistics > src > > Utils


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//escapematrixonline.com/wp-content/plugins//wp-statistics/src//Utils

NameTypeSizeLast ModifiedActions
Query.php File 25270 bytes June 29 2025 11:30:46.
Request.php File 8704 bytes April 01 2025 13:53:58.
Signature.php File 805 bytes July 16 2024 20:12:34.
Url.php File 4445 bytes April 01 2025 13:53:58.

Reading File: /home/codekrsu//escapematrixonline.com/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;
    }
}

SILENT KILLER Tool