for in that time he was not yet evil to behold , and they received his aid and grew mighty in craft , whereas he learned all their secrets , and betrayed them , and forged secretly in the mountain of fire the one ring to be their master .