In what are the ways you can encrypt the password ?
Answers were Sorted based on User's Feedback
Answer / padmavathy
using old password, password, MD5. These are some ways to
encrypt passwords
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / asha banu
Hi,
<?php
$password = crypt('mypassword');
if(crypt($user_input, $password)==$password)
{
echo "Password verified!";
}
?>
this is an example to encrypt the password. There is no
method for decrypt.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / ks.tarun
with md5() function
with base64_encode() function..
but in base64_encode, it will take 33% more space then
original data.
| Is This Answer Correct ? | 1 Yes | 0 No |
Is empty in php?
What is the content of /etc directory?
What is difference between compile time and run time polymorphism?
Why should I store logs in a database rather than a file?
What is the meaning of a persistent cookie?
What are the new features in php 7?
How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?
What are php applications?
what is the url rewriting?how to rewrite the url? give any example
How can we do user authentication without using session/cookies ? For ex:- From page1 accepts user name and password and need to check in all other pages whether the user has logged in or not
Which operator is used to combine string values in php?
What are the differences between GET and POST methods?