3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $email= 'm6udrKWplpyWyNCQnqOkmaKWmp-SxdPR'; $private_key = '6KzVA_2qy'; //possible de la changer function base64_url_decode($input) { return base64_decode(strtr($input, '-_,', '+/=')); } //fonction de decryptage function f_decrypt($private_key, $str_to_decrypt) { $private_key = md5($private_key); $letter = -1; $new_str = ''; $str_to_decrypt = base64_decode($str_to_decrypt); $strlen = strlen($str_to_decrypt); for ($i = 0; $i < $strlen; $i++) { $letter++; if ($letter > 31) { $letter = 0; } $neword = ord($str_to_decrypt{$i}) - ord($private_key{$letter}); if ($neword < 1) { $neword += 256; } $new_str .= chr($neword); } return $new_str; } echo f_decrypt($private_key, $email);
based on p0mm2
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
kulturegeek.fr@gmaiaM�