I am trying to crack a number of passwords that have been hashed using SHA-256 using some java code.
I have the hashes available and I also have the possibilities in which the password can be. Some of these possibilities include,
So for example I have hash
9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08
and I want to get the password using an algorithm (one which I will code in Java) to get the password:
test
Is the only possible way I can do this is to calculate the hashes for all of the possibilities and then compare them with the hashes that I have?