Random Is Not Random (40 points)

Quel est le mot de passe contenu dans ce texte.
fe952d24cc8ab972c34b4c3ddd22e8

Le script de chiffrement est celui-ci :
function encrypt($plaintext) {
    srand(time()); 
    $cipher = '';
    for ($i = 0; $i < strlen($plaintext); $i++) {
        $key = rand(0, 255);
        $cipher .= chr(ord($plaintext[$i]) ^ $key);
    }
    return bin2hex($cipher);
}
$flag = "CTF{****************}";
echo $cipher_hex = encrypt($flag);






Signaler un bug ou une erreur -> contact [At] cyber-learning.fr