MD5 and SHA1 are insecure and should be avoided. The examples exist for educational purposes and due to the fact that legacy software may still use these algorithms.
Handling FormatException when converting string to other types
Complete Password Hashing Solution using Pbkdf2
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0