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>
fine
ReplyDeleteHow to Decrypt?
ReplyDeleteonce you have encrypt can't again decrypt
DeleteActually, there are entire lists on the internet with password/encrypted md5 hashes out there.
Deletemd5 hashes should *never* be used!! http://www.md5decrypter.co.uk/
Instead, use PHP 5.5's password_* methods or for versions before 5.5, use the password compat lib.
http://php.net/manual/en/book.password.php
http://www.md5decrypter.co.uk/ site mostly decrypt on numbers
DeleteEncrypting text by using Md5 and sha1 techniques we can'nt decrypt it back to original text. By Using Base64 we can encode and decode text.Most Probably Base 64 Not used for Password Encryption
Delete