[Solved] sha256 string starting with custom like aaaaaa


The best you can do is try lots of inputs until you find one that works:

x = 0
while True:
    x += 1
    if sha256(str(x)).startswith('a' * 15):
        return str(x)

Unfortunately, you want so many a in a row that it will take decades for this method to finish. Every extra a increases the runtime by a factor 16.

If there was a simple way to find strings starting with lots of a, the hash function would not be secure. So this is the best you will be able to do, short of performing groundbreaking research in cryptography.

3

solved sha256 string starting with custom like aaaaaa