Catalyst for hydrogen purification and desulfurization