<?php
$encryptionKey = base64_decode("xErBbroP73A4DPhHAIEMul6zf9lenyuEno04tmdWZ3g=");
$checksumKey = base64_decode("xPwnkqGeQXmMJom48pSEdRmU1MXQ8kr3jCey20d+eu8=");
$timestamp = floor(microtime(true)*1000);
$message = $timestamp.";"."friendfinder123";
$blockSize = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);
$padding = $blockSize - (strlen($message) % $blockSize);
$message .= str_repeat(chr($padding), $padding);
srand(time());
$ivSize = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);
$iv = mcrypt_create_iv($ivSize,MCRYPT_RAND);
$encryptedMessage = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $encryptionKey, $message,MCRYPT_MODE_CBC, $iv);
$hmac = hash_hmac("sha1", $encryptedMessage.$iv, $checksumKey, true);
$authorizationToken = base64_encode($encryptedMessage.$iv.$hmac)
- Output for 5.4.0 - 5.4.34
- Parse error: syntax error, unexpected end of file in /in/RfjDk on line 20
Process exited with code 255. - Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
- Parse error: syntax error, unexpected $end in /in/RfjDk on line 20
Process exited with code 255. - Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
- Parse error: parse error, unexpected $ in /in/RfjDk on line 20
Process exited with code 255. - Output for 4.3.2 - 4.3.4
- Parse error: parse error in /in/RfjDk on line 20
Process exited with code 255.
preferences:
211.17 ms | 1395 KiB | 124 Q