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.
4
votes
Accepted
Generating SHA-0
SHA-0 is supported in sphlib; that library contains implementations of SHA-0 in both C and Java. The C code also comes with an appropriate command-line tool. … Repurposing a SHA-1 implementation into a SHA-0 implementation is not hard; the two functions differ only by an additional rotation in the "word expansion" step. …
1
vote
Is it possible to know the key if we have the original value and the hash using HmacSHA1?
A good Message Authentication Code algorithm should be resistant to forgeries: imagine that the Bad Guy has access to a box which computes HMAC/SHA-1 over inputs that he chooses and provides; internally … on HMAC/SHA-1, let alone recover the key, given input/output pairs (even if the attacker gets to choose the input values in these pairs). …
33
votes
Accepted
Is sha-1 hash always the same?
Hash functions are deterministic: same input yields the same output. Any implementation of a given hash function, regardless of the language it is implemented in, must act the same.
However, note tha …
7
votes
Accepted
Truncating hash output for a unique ID
There is no known property of the first/last/middle/whatev 60 bits of a SHA-256 output that would make them more/less "randomish" than the last/whatev/middle/first 60 bits. … Is is possible that the inherent UUID generation system of your local programming environment relies on a cryptographically secure PRNG (so hashing an UUID with SHA-256 would then be fine, even for unpredictability …
4
votes
Will SHA1 of Email Addresses Always be Unique?
Note though that:
SHA-1 has some cryptographic weaknesses, which make it somewhat easier for an ill-intentioned individual to create on purpose two distinct email addresses which will hash to the same … Anyway, you might be a bit more cautious to use SHA-256 instead of SHA-1 (and it will look better if you are audited).
Email addresses can be case-insensitive. …
3
votes
Accepted
Creating a rainbow table with predefined text
You would have to either find a tool which already handles exactly this kind of hashing, or modify one to suit your needs. For instance, this project seems to contain an opensource rainbow table gener …
1
vote
Hash algorithm without ASIC's
An ASIC is a chip. A CPU is a chip. Whatever a CPU does best, an ASIC can do equally well, by the simple expendient of using that CPU as ASIC...
What you want, specifically, is a hash function for wh …
2
votes
Why is the brute force search time for hashing algorithms 2^(num_bits / 2)?
When a hash function has an output of size n bits, then:
The generic algorithm for finding a preimage (or a second preimage) has average cost 2n evaluations of the hash function.
The generic algorit …
6
votes
Accepted
How is a hash's algorithm detected based on the hash?
IF, at some point in the future, we find a value x such that SHA-1(x) matches one of these hash values, then we will be pretty sure that SHA-1 was indeed involved, and on input x; any other hypothesis … However, until this is done, claiming that "this is SHA-1" is just guesswork. …
104
votes
Accepted
Why is Google still using a SHA-1 certificate on its own site when they are phasing them out...
My guess as to why they still use SHA-1 is that they want to interoperate with some existing systems and browsers that do not support SHA-256 yet. … When the whole World has switched to SHA-256, and all firewalls have been updated, the path becomes clear for Google, and they can use SHA-256 for their new certificates. …
62
votes
Does every hash value have an inverse value?
SHA-1), Pb is a permutation of the space of sequences of exactly n bits (n = 128 for MD5, n = 160 for SHA-1). … (In the case of MD5 and SHA-1, that addition is done on a 32-bit word basis, but the details do not matter here.) …
7
votes
Replacing weak SSH fingerprint algorithms
New protocols should rely on better hash functions (like SHA-256), but there is no use in breaking existing protocol by evicting a still serviceable MD5. …
6
votes
Is SHA-1 encryption?
Thus, there can be no such thing as "one-way encryption", and SHA-1 is not encryption. … SHA-1 is hashing: no key, fixed-size output (160 bits for SHA-1), no reverse process (in particular, the input can be quite larger than the 160 output bits). …
4
votes
Accepted
How signature validation would be checked on server side?
It is not "SHA-1" which is used, but "HMAC/SHA-1". … HMAC is a MAC algorithm which is built around an underlying hash function (here SHA-1) as a building block, but there is more to HMAC than simply a hash function. …
2
votes
Accepted
Any reason to use bcrypt, pbkdf2, scrpt for other things than passwords?
The password-hashing functions (and password-based key derivation functions, in the case of PBKDF2) are designed to cope with the low entropy of passwords: they start from a bad situation (initial sec …