This article is about how to password encrypt method . For an overview of cryptography technology encryption function password plain-text convert cipher-text this is use of hackers cannot read our given password. the password convert to md5 algorithm this usually needs a key-generation algorithm to randomly produce keys through to store database.
password encrption
Password its a client request to store the database for the purpose of security. but some hackers hack to store or browser cookies password easily hack to the database. so this problem avoided to secure our password to convert hash function algorithm an MD5 (Message-Digest algorithm 5) is a widely used cryptography hash function with a 128-bit hash value to randomly generate encryption key value this value match user given password(plain text) convert to encryption key(cipher text). its very secure can't hackers hack to database store password.
Algorithm
User given password to change the hash function method using md5 sample md5($_POST['password'];)
to store variable.
<?php
$password="mostlikers";
$encrypt=md5($password);
echo $encrypt;
?>
HTML
Try this sample php code just enter the password to submit get the encryption code
<?php
$password=$_POST['password'];
$encrypt=md5($password);
echo $encrypt;
?>
<html>
<head>
<title>Mostlikers</title>
</head>
<body>
<h1>Password Encryption</h1>
<form method="post">
password <input type="password" name="password" / >
<input type="submit" name="submit" value="dd" />
</form>
</body>
</html>
0 comments:
Post a Comment