Multi hash generator / verificator in python