Generic Birthday Attack Python Implementation