logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • How can we encrypt the username and password using PHP?


  • Correct Answer
  • User names and passwords in PHP can be encrypted using md5 function MD5 function calculates the md5 hash of a string It is basically used for encryption It is also used for digital signature applications, where a large file must be "compressed" in a secure manner Example: Md5($str); Crypt() function can also be used to encrypt a string, It used MD5, DES or blow fish algorithms for encryption Syntax: Crypt(str, salt) Salt is an optional parameter used to increase the number of characters encoded, to make the encoding more secure 


  • Technology problems


    Search Results


    • 1. What Is a Session in PHP?
    • Discuss
    • 2. How to set cookies in PHP?
    • Discuss
    • 3. Explain when to use GET or POST. Provide example for both the ways.
    • Discuss
    • 4. What type of inheritance that PHP supports? Provide an example.
    • Discuss
    • 5. Explain how to create random passwords.
    • Discuss
    • 6. Explain the changing file permission and ownership using PHP's chmod() function.
    • Discuss
    • 7. Explain the working with directories using opendir(), readdirs(), closedir() along with examples.
    • Discuss
    • 8. What is the difference between using copy() and move() function in php file uploading?
    • Discuss
    • 9. What is the difference between mysql_connect and mysql_pconnect?
    • Discuss
    • 10. What do you mean by a deadlock?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment