title: When should I use SHA-1 and when should I use SHA-2?
body: <p>In my c# application, I'm using RSA to sign files before being uploaded on the database of my company by the person who is uploading and here I have to choose SHA-1 or SHA-2 for computing the hash.<br>
  As any other component in programming, I know that there must be a "use this here" and "use that there" for the two of them.<br>
  So, When this? and when that?</p>
  
  <p>EDIT:<br>
  My question is: What is the difference regarding performance? and not regarding security, as I already know that SHA-2 is more solid secure than SHA-1.<br>
  In this <a href="https://community.emc.com/community/edn/rsashare/blog/2010/11/01/sha-2-algorithms-when-sha-512-is-more-secure-and-faster" rel="noreferrer">Link</a> a comparison between different types of SHA-2 noting when to use SHA-512 and when not in the end. I need a similar argument about SHA-1 and SHA-2.</p>