Alex Rivera | Logout

When should I use SHA-1 and when should I use SHA-2?

Asked 2011-02-15T09:34:12.787
27

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.
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.
So, When this? and when that?

EDIT:
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.
In this Link 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.

Edit
Report

1 Answer

-1

SHA2 is newer and stronger hashing algorithm. The main question is whether the recipient is capable of handling SHA2. If the recipient can handle it, - go with SHA2 without doubt.

answered 2011-02-15T09:40:39.727

Your Answer