Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Secure Hash Algorithm is a family of cryptographic hash functions published by NIST. This includes SHA-1, and the SHA-2 and SHA-3 families of functions. SHA-1 is deprecated for all usages.
6
votes
Is it safe to expose an SHA1 hash of an encryption key?
For instance, imagine an encryption algorithm defined the following way: for message M and key K, hash K with SHA-1, then use the first 128 bits of the SHA-1 output with AES to process the message M. … However, if you reveal SHA-1(K) then it becomes trivial to break it, even though you did not reveal K itself. …
3
votes
How secure is a partial 64bit hash of a SHA1 160bit hash?
Now the important notes:
All of the above assumes that SHA-1 truncated to 64 bits (let's call it SHA-1/64) is as good against preimages as can be expected from a "perfect" hash function, and as SHA-1 … It can be shown that SHA-1/64 cannot be too weak against preimages, because a very fast attack against SHA-1/64 could be turned into an attack against the full SHA-1 which would be faster than 2160 (not …
2
votes
Use of pwgen with sha1 to create recreatable passwords
It all depends on the context, which you do not specify. You want to be able to recreate the passwords for some reason; depending on that reason, inability to do it without a Linux machine at hand may …
13
votes
Accepted
Password generation - too primitive?
For security, one important thing to take into account is that an exhaustive search on the master password is feasible. Schematically, an attacker who got a site-specific password (e.g. an evil admin …
7
votes
Will Google block HMAC-SHA1 along with SHA1 signed certificates?
It is known that MD5 and SHA-1 do not fulfil all these properties (because then they would also be ideally resistant to collisions, which they are not), but that just invalidates the proof. … Up to and including TLS 1.1, HMAC/SHA-1 is used in both roles, and that's not optional. Banning HMAC/SHA-1 would really mean enforcing TLS-1.2. …
16
votes
Accepted
SHA and "Bits of Security"
Therefore, your truncated SHA-256 will offer "128-bit security" only in usage contexts where collisions are not an issue. … SHA-256 collisions are not feasible with existing technology. …
6
votes
Accepted
Is leaking the hash of your encryption key a security risk?
A cryptographically sound way is the following: from the shared key K, compute SHA-256(K). This yields 256 bits. …
3
votes
Accepted
Is it worth it to implement both SHA2 and SHA3 at the same time?
By your scheme with a combination of SHA-2 and SHA-3, you would be on the right track to add one more person on the depressingly long list of people who felt that creativity was a good thing in cryptography … (None of this says anything about SHA-2 or SHA-3 as generic hash functions. …
57
votes
Accepted
Is sha1sum still secure for downloadable software packages signature?
From a business point of view, it rarely makes any good not to yield to the fashion du jour, so you should use one of the SHA-2 functions, e.g. SHA-256 or SHA-512. … There is no strong reason to prefer SHA-256 over SHA-512 or the other way round; some small, 32-bit only architectures are more comfortable with SHA-256, but this rarely matters in practice (even a 32- …
16
votes
Accepted
Why is it fine for certificates above the end-entity certificate to be SHA-1 based?
Hence, no problem with SHA-1 or, come what may, MD5 or MD2. …
6
votes
Accepted
Easy protocol for email authentication
Applying a hash function on the concatenation of the password and some other data is a custom MAC, and not a very good one with usual hash functions like SHA-512 because of the length extension attack. …
3
votes
Accepted
What are the enhancements of SHA1 compared to MD5?
SHA-1 is not (at least, not as much). If your protocol requires resistance to collisions, then don't use MD5. … That MD5 is about 40% faster than SHA-1 won't actually matter, since the bottleneck is the disk, not the hashing.
SHA-256 and SHA-512 are the currently recommended general purpose hash functions. …
12
votes
Is it possible to salt the SHA1 or SHA256 hash function of OpenSSL?
SHA-1 and SHA-256 are cryptographic hash functions. They take as input an arbitrary sequence of bits -- and only that. There is no "salt" in hash functions. …
21
votes
Why should I choose SHA (such as SHa-512), instead of bcrypt or PBKDF2, for FIPS-compliance?
Using SHA-512 "as is", with or without some salt and regardless of how you inject the said salt in the engine, would not grant you the NIST approval. … NIST approves PBKDF2, as long as the underlying primitive used in PBKDF2 is itself "approved" (i.e. it is HMAC used with one of the SHA-2 functions). …
30
votes
Accepted
Reversible Hash Function?
The definition of a cryptographic hash function includes resistance to preimages: given h(x), it should be infeasible to recover x. A hash function being "reversible" is the exact opposite of that pro …