How passwords are stored. The most basic, but also the least secure, password storage format is cleartext.
What is a hash password?
In Cryptography, a hash function is a mathematical algorithm that maps the data. Hashing is a one-way encryption. You cannot get the original text back from the hash.
once this password hash is generated and stored in the database, then you can not get it back to plain text.
Types of Secure hash:
Password security using MD5 Algorithm:
The MD5 Message-Digest Algorithm is widely used in the Cryptography hash function. The hash value of MD5 is 128 bit (16 bytes). The basic video is to map data sets of the variable to data sets of a fixed length.
Password security using SHA Algorithm:
The SHA (Secure Hash Algorithm) is used in Cryptographic hash functions. It is similar to MD5, but it generates a more strong hash.
There are 4 different types of SHA algorithm.
- SHA-1 (This is the easiest one, 160 bits hash)
- SHA-256 (This is Stronger than SHA-1, 256 bits hash)
- SHA-384 (This is Stronger than SHA-256, 384 bits hash)
- SHA-512 (This is Stronger then SHA-3, 512 bits hash)