If i have a SHA-256 hash and I know what could be the crypted string is it possible to decode it faster?

Lets say I know the string is formed like this : %d-%d-%d-%s %d being numbers from 1-25 %s being a random string.

Is it possible to decode the numbers?


No. SHA-256 is hashing not encryption. It's irreversible. You may however be able to try all available inputs and see if any of your known hashes matches one of the computed hashes. There is no other way than this "brute force" approach.

  • If you know a portion of the string does that not cut down the password space? – RoraΖ May 16 '15 at 11:55
  • Yes it does, however if %s is truly random and long enough they keyspace is still too large for it to be practical. – Bruno Rohée May 16 '15 at 12:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.