I know this is a real dumb question and I am certainly talking complete rubbish, but let me explain:
- We have a long SHA-256 hash, e.g.:
474bfe428885057c38088d585c5b019c74cfce74bbacd94a7b4ffbd96ace0675
(256bit) - Now we use the long hash to create one SHA-1 and one MD5 hash and combine them.
E.g.:
c49e2143913627ea178e66571189628a41526bf3
(SHA-1; 160bit) +6bb225025371aaa811748da8e011773d
(MD5; 128bit)
So now we got this:
c49e2143913627ea178e66571189628a41526bf36bb225025371aaa811748da8e011773d
(SHA-1 + MD5; 160bit + 128bit = 288bit)
And it is longer than the input string, with 288bit instead of 256bit. So did we actually increased the entropy?
In short this is this:
hash = sha256(input) # 256bit
result = sha1(hash) + md5(hash) # 288bit
(That is supposed to be pseudo-code, don't know if it is valid through.)
What is the error in reasoning here? I am sure you cannot increase entropy/string length in this way...
Edit: Also important: Did I possibly even decreased the entropy this or stayed it the same?