New common crypto utility