sha1 and sha-256 are not same.
sha-224, sha-256, sha-384, and sha-512 are consider as sha2 and able produces a message digest up to 512bits, which as its name.
May I know is that SHA hash function declare under US patent? What is the term and condition? Any patent fee involed?
If I'm wrong...