Java PHPass hash implementation