setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $db->prepare("INSERT INTO md5_data (md5, value) VALUES (:md5, :value)"); $stmt->bindParam(':md5', $md5_hash); $stmt->bindParam(':value', $_POST["md5-text"]); $stmt->execute(); echo '

Generate MD5 Hash

The MD5 Hash Generator tool allows you to quickly and easily generate an MD5 hash from any text input. This is useful for creating checksums, storing passwords securely, or any other application where a unique hash representation of your data is needed.

Converted MD5:


'; echo ' '; // echo json_encode(array('success' => true, 'message' => 'Data inserted successfully')); // echo ''; } catch (PDOException $e) { echo json_encode(array('success' => false, 'message' => 'Database error: ' . $e->getMessage())); exit(); } }else{ echo '

Generate MD5 Hash




'; } ?>

Usage:

Features:

Example Use Cases: