In what are the ways you can encrypt the password ?

Answers were Sorted based on User's Feedback



In what are the ways you can encrypt the password ?..

Answer / prasad

using md5() function to encrypt.
but we cant decrypt it.

Is This Answer Correct ?    13 Yes 1 No

In what are the ways you can encrypt the password ?..

Answer / padmavathy

using old password, password, MD5. These are some ways to
encrypt passwords

Is This Answer Correct ?    3 Yes 1 No

In what are the ways you can encrypt the password ?..

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

In what are the ways you can encrypt the password ?..

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

In what are the ways you can encrypt the password ?..

Answer / rajyalakshmi

base64_encode

Is This Answer Correct ?    1 Yes 1 No

In what are the ways you can encrypt the password ?..

Answer / supriya

$enc=base64_encode("allinterview");
echo $enc;

Is This Answer Correct ?    0 Yes 0 No

In what are the ways you can encrypt the password ?..

Answer / raghavaiah

base64_encript

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More PHP Interview Questions

How can we pass the variable through the navigation between the pages?

0 Answers  


What do you mean by MVC ?

3 Answers   NIIT,


What does the array operator '===' means?

0 Answers  


Does php have a future?

0 Answers  


Explain preg_Match and preg_replace?

0 Answers  






Can we override static method?

0 Answers  


What is a php namespace?

0 Answers  


Could we start a variable with number like $4name?

0 Answers  


how to set session expire(session timeout) using php code

2 Answers  


What are the encryption functions in php?

0 Answers  


What is php dependency injection?

0 Answers  


Explain how we can get the number of elements in an array?

0 Answers  


Categories