sha1, md5, other cryptography and How to
Today we will talk about cryptography. As we know, cryptography – the set of methods to ensure confidentiality and authenticity of information. Cryptography is even science. Encryption can be reversible (when we can get the source text) and irreversible (when we can can`t get the source text). Today we will talk about using an irreversible encryption methods (like md5, sha, haval, ripemd and others) in web development.
Irreversible encryption is most often used to encrypt passwords. All in order not to store passwords as open text. Thus even if your database is hacked – you can be sure that the attacker does not receive a single password. How are we going to check – whether the user enters a password – simply, we will encrypt the entered data too. Of corse, passwords are not the only where encryption is used. We also can encrypt text, files, and after transferring – check for hash sum of sent data. This is just examples of using.
(more…)