Having that the result for some string STR was:
SHA256(STR)=3f7c54571faee024e3fd68603c5c95f6a4c8ef73a398840b974f3f57737a116f
Would it be possible to get the result of SHA256(myOwnString+STR)? (‘+’ is used as concatenation)
Are there any known attacks for this scenario?
myOwnString+STRwould be a totally different string thanSTR— so, those two would have totally different hashes ; and looking at those hashed, you’d have no way of guessing they result of your hashing function being applied toSTRand something based onSTR.That’s precisely why we generally recommend using a salt when hashing passwords — see Salt (cryptography), about that.