SHA-256 is part of the SHA-2 family of hash functions with a 256 bit output.

learn more… | top users | synonyms

7
votes
1answer
378 views

Should I use the first or last bits from a sha-256 hash?

I have the need for a hexadecimal token that is smaller than the normal length of the hexadecimal representation of a sha-256 hash. Should I take the first bits or the last bits? Which of them ...
12
votes
2answers
1k views

“SHA-256” vs “any 256 bits of SHA-512”, which is more secure?

In terms of security strength, Is there any difference in using the SHA-256 algorithm vs using any random 256 bits of the output of the SHA-512 algorithm? Similarly, what is the security difference ...
4
votes
2answers
596 views

128 bit hash with least chance of collision

I'm building a storage system for JSON documents where they are looked up on a 128 bit key. These JSON documents have a timestamp within them, but apart from that are user-entered data. These JSON ...
10
votes
3answers
1k views

At the current time, is SHA256 the de facto standard for strong cryptographic hashes?

At the current time, is SHA256 the de facto standard for strong cryptographic hashes? From what I am seeing of more sites utilizing it, I would suppose the answer to this is yes, but would like to ...
3
votes
3answers
615 views

A simple block cipher based on the SHA-256 hash function

I've come up with this little routine for doing encryption using the SHA-2 (in this case SHA-256) hash function. As such it is a block cipher with a 256 bit (32 byte) block size and an arbitrary key ...