PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
CREATE TABLE user_value (`user_name` varchar(4), `user_pass` varchar(3)) ;
Copy Clear
Copy Format Clear
<?php function md5_decrypt($hash) { // URL of an online MD5 decryption service $url = "https://api.hashlookup.io/md5/" . $hash; // Use file_get_contents to get the response $response = file_get_contents($url); // Decode the JSON response $data = json_decode($response, true); // Check if the original value is found if (isset($data['result']['hash']) && $data['result']['hash'] === $hash) { return $data['result']['plaintext']; // Return the original value } else { return "Not found"; // Return a message if not found } } // Example usage $md5_hash = "Bcy3DWkwJEDGBpV9wzFafMQkcq6ALB0"; // MD5 for "hello" $original_value = md5_decrypt($md5_hash); echo "Original value: " . $original_value; ?>
Show:  
Copy Clear