Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • What is utilization of md5() function in php?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 220
    Comment on it

    Hi Reader's,
    Welcome to FindNerd, today we are going to discuss what is utilization of md5() function.

    md5() function is used to providing security for protecting your password.MD5 stands for Message-Digest Algorithm. Suppose you have a simple registration form and you want to put your password in encrypted form when your data is ready to store in a database then you should use md5() function for encrypted your password.
    you can see below syntax of md5() function

    md5(string,raw)

    In above syntax string parmeter is required and used to be calculated,raw is a optional parameter.

    you can see below example of md5() function:

      <?php
        //here $str is variable
        $str = "123456";
        //use md5() function for encrypted
        echo md5($str);
        ?> 
    
     Output will come following:   
    
    e10adc3949ba59abbe56e057f20f883e


     

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: