Base64 and MD5 - Java

0

What are the differences between MD5 and Base64 for encryption? Which is the safest?

I read that MD5 is the most used, but wanted to understand the reason.

    
asked by anonymous 15.02.2017 / 00:14

1 answer

0

Base 64 is not an encryption mechanism, it is a coding scheme. It is easily reversed, so it is not a good option to protect critical data.

Base 64 encoding is generally used to transmit binary data through a mechanism that only allows ASCII text.

Previously the common approach to passwords was to hash them with something like MD5 and then store the hash in the database. When the user logs on again, the password is entered, the hash is recalculated and checked against the existing one in the database.

You can check this question, which and best way to safely perform password hashing, since MD5 is no longer suitable for this purpose.

Source: link

    
15.02.2017 / 01:44