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
and I want to get the password using an algorithm (one which I will code in Java) to get the password:
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?