Category : hash

Im currently trying out something in php but im facing an issue at the moment. //Regex Check –> Transaction if(preg_match("/^([a-f0-9]{64})$/", str_replace("/", "", $txid))) { echo "Tx"; } //Regex Check –> Address elseif(preg_match("/^(bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39}$/", str_replace("/", "", $txid))) { echo "Wallet"; } //Regex Check –> Blockhash if(preg_match("^[0]{8}[a-fA-F0-9]{56}$", str_replace("/", "", $txid))) { echo "Blockhash"; } This is my code ..

Read more

I have a ws where I create a User with username and pw and I use password_hash($password, PASSWORD_DEFAULT); to make hash of the password. Ws create user: <?php header(‘Content-Type: text/xml’); $username = $_REQUEST["username"] ?? ""; $password = $_REQUEST["psw"] ?? ""; $codice_risposta = 0; $messaggio = ""; $sql = ""; $hashedPassword = password_hash($password, PASSWORD_DEFAULT); $conn = ..

Read more

Good afternoon, I need to decrypt a url parameter(?sso=) using the AES method in PHP. I was given the HASH key (d73002af0bfc47a324eb5fc45e4d6cf7) to decrypt but I’m not getting it. example: https://somedomain.com/?sso=3eGhiXF9LUgeTH3kX4pzaWqyzVfmf%2BsqM17xfXEY4muTa3y5zWKoOUK2f5EEQ3QW Expected result: ?sso= nif%3D200590952%2Bcpa%3DPT0002000073221292TJ Someone can help me? Sourc..

Read more