How can we encrypt the username and password using PHP?

The functions in this section perform encryption and decryption

encryption decryption
AES_ENCRYT() AES_DECRYPT()
ENCODE() DECODE()
DES_ENCRYPT() DES_DECRYPT()
ENCRYPT() Not available
MD5() Not available
OLD_PASSWORD() Not available
PASSWORD() Not available
SHA() or SHA1() Not available
Not available UNCOMPRESSED_LENGTH()
Related Posts:
  • configuring PHP-impact security The primary mechanism for configuring PHP is the php.inifile. As the master file, this provides you with control over all configuration settings. Entries generally take the format:setting= value Be sure to read the comment… Read More
  • what is ob_start? ob_start turns on output buffering, … Read More
  • difference between include and require? Answer: It"s how they handle failures. If the file is not found by require(), it will cause a fatal error and halt theexecution of the script. If the file is not found by include(), a warning will be issued, but execution wi… Read More
  • Passing References to Your Own Functions php By passing a reference to a variable as an argument to a function, rather than the variable itself, you passthe argument by reference , rather than by value. This means that the function can now alter the originalvalue, rath… Read More
  • What is MVC? MVC- Model, View, Controller - is simply Model -  contains data access code and all of you business logic code. View - Contains markup/design code, generally html,xml, json. Controller -  contains very little… Read More
  • How register the variables into a session? session_register ($session_var) function. (adsbygoogle = window.adsbygoogle || []).push({}); … Read More
  • php tutorial-for beginners PHP Functions | PHP Interview Questions,PHP tutorial,seo-tips,seo tutorial,N... PHP Sessions | PHP Interview Questions,PHP tutorial,seo-tips,seo tutorial,Ne... Cookies Ver… Read More
  • Query Strings Query string data is very easy for the user to alter, because it ’ s visible and editable within the browser ’ s address bar. Therefore, query strings should be used only in situations where sending incorrect data won ’ t co… Read More
  • how access a method in the parent class that's been overridden in the child? Prefix parent:: to the method name: class shape { function draw( ) { // write to screen } } class circle extends shape { function draw($origin, $radius) { // validate data if ($radius > … Read More
  • What is SQL Injection? SQL Injection is the hacking technique which attempts to pass SQL commands (statements) through a web application for execution by the backend database. it can be prevented by mysql_real_escape_string() function of PHP. … Read More
  • Testing working using phpinfo() Let’s install Apache, PHP, and MySQL under a Unix environment. First, you need todecide which extra modules you will load under the trio. Because some of the examplescovered in this book use a secure server for web transacti… Read More
  • Scope Resolution Operator? ::  is the scope operator it is used to call methods of a class that has not been instantiated. … Read More
  • find the number of parameters passed into function in PHP? func_num_args() function returns the number of parameters/arguments passed to a function in PHP. … Read More
  • php.ini Basics After you have compiled or installed PHP, you can still change its behavior with the php.ini file. On Linux/UNIX systems, the default location for this file is /usr/local/php/lib or the lib subdirectory of the PHP installati… Read More
  • PHP-script-Related Variables PHP-script Related Variables PHP automatically creates variables for all the data it receives in an HTTP request. This can include GET data, POST data, cookie data, and environment variables. The variables are e… Read More