answersLogoWhite

0

md5() is one-way encryption method.

Example:

$test_string="php";

$md_encoded_string=md5($test_string);

But, you can't decode the string back to php.So, if you need to check the entered string is php or not

$user_entered_string=md5($_POST['user_input']);

if($md_encoded_string == $user_entered_string)

{

echo "input matched";

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Basic Math

How do decrypt the password in php?

If the encryption is applied using md5, decrypting is normally impossible (emphasizes on normally).


What is the difference between rip v1 rip v2?

Particulars RIP V1 RIP V2 VLSM Support NO Route Propogation Mechanism Broadcast (255.255.255.255 ) Multicast (224.0.0.9) Authentication Mechanism No Yes ( Text & MD5 )----RIP V1-----> Classful routing protocol.RIP V2-----> Classless routing protocol.-----------------------------------------------------RIP V1------> Subnet masks are NOT included in the routing update.RIP V2------> Subnet masks are included in the routing update.-----------------------------------------------------RIP V2 is actually an enhancement of RIP V1's features and extensions raether than an entirely new protocol.


How do you insert data to a database using a PHP form?

You will need a table first, this can be created via your Database - PHPMyAdmin,So, the first step would be to go to your Control Panel for your website, down to PHPMyAdmin and then to the database you are going to be creating the table inOnce there, you should see an option at the bottom of your page, not in the left hand menu. 'Create new table on database NAMEOFDATABASE'Name the table, Remember, names of tables shouldn't have spaces, use underscores if you need a space. You will also need to input the amount of fields.Once the fields are correctly named and whatnot, you can start thinking about inputting data into the table.Go to your page editor for a php file you should have created. You should know a little about PHP if you're wanting to input items with PHP, so, let's get to Inputting.Inputting data in PHP - MySQLSay you've created a registration form, you have all the fields filled out correctly for the person to Register their details, now you need a way for your website to remember that they are now a member right?The table you should have created in your database is a users table, with fields for the Username, Password (which remember, should be set to MD5 in it's function setting), the gender of the Registering user and their Email address. (4 fields altogether then.)Once you have created variables, query checks for the items that need it and MD5'd the passwords, a query is needed to input the details.e.gmysql_query("INSERT INTO `users` VALUES('$name','$pass','$gender','$email')") or die("Errored due to:".mysql_error());This will Input the values into the table you created with the details of the registering person.Notice that any form element in an HTML page will automatically be available to your PHP scripts.


Related Questions

What is the purpose of MD5 hash calculation?

MD5 check sum is unique for a file content and is used to check the integrity of the file content. If file is to be transferred using network, recipient can calculate the MD5 hash and check it with the MD5 check sum of sender, if both are same, he can be sure of non-corruption of file in transit.


How do you crack the MD5 on learntohack dot co dot UK?

the md5 in this site is fake md5


What is the bit for MD5?

MD5 is one of the ways of encrypting passwords and making them secure than leaving them plain. MD5 is of bit 32.


How do decrypt the password in php?

If the encryption is applied using md5, decrypting is normally impossible (emphasizes on normally).


What you sthe bit length of any generated digest when using the MD5 hashing algorithm?

128 Bits


How secure is MD5?

MD5 password scrambler used to be secure but now is no longer secure.


What are the available encryptions in PHP?

PHP has built-in one way hashing using the md5 function. Additional encryption capabilities are available using the Mcrypt extension.


Can someone decrypt this md5 hash b2a6f48ab5c7eedbe8f31b7d3c2469ce please?

Unfortunately, md5 encryption can NEVER decrypted, that is the whole point of it!


Example of md5 algorithm?

fdf


Which size checksum does md5 produce?

128


Which algorithm is used for data integrity?

MD5


Where can one find a md5 hash generator?

There are many places an individual may find an MD5 hash generator. Some of the websites which have hash generators are Miracle Salad and the website called MD 5 Hash Generator. MD5 Hasher is another website which has this generator.