����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 162.0.232.25 / Your IP : 3.15.1.44 Web Server : LiteSpeed System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : kwacuqig ( 988) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/kwacuqig/voltify.malawisounds.com/ |
Upload File : |
<?php function generateToken($amountOfEnergy, $meterNumber) { $tokenLength = 20; $shift = 3; // Number of positions to shift each digit $delimiter = '|'; // Delimiter character to separate meter number and token amount $token = ''; // Convert the amount of energy and meter number to strings $energyString = strval($amountOfEnergy); $meterNumberString = strval($meterNumber); // Calculate the remaining length for random digits $remainingLength = $tokenLength - strlen($energyString) - strlen($meterNumberString); // Generate random digits for the remaining length for ($i = 0; $i < $remainingLength; $i++) { $token .= strval(random_int(0, 9)); } // Concatenate the strings to form the token $token = $energyString . $delimiter . $meterNumberString . $token; // Encrypt the token using a Caesar cipher $encryptedToken = encryptToken($token, $shift); return $encryptedToken; // return $token; } // Encrypt the token using a simple Caesar cipher function encryptToken($token, $shift) { $encryptedToken = ''; for ($i = 0; $i < strlen($token); $i++) { $c = $token[$i]; if (ctype_digit($c)) { // Shift the digit value by the specified number of positions $shiftedDigit = ($c + $shift) % 10; $encryptedToken .= strval($shiftedDigit); } } return $encryptedToken; } $amountOfEnergy = round(4); $meterNumber = 265001; $token = generateToken($amountOfEnergy, $meterNumber); echo '<br>'; echo $token; ?>