The average transmission probability of a one-dimensional mesoscopic ring is calculated for arbitrary disorder strength. With increasing disorder the dependence on the magnetic flux PHI changes from PHI0 to PHI0/2 periodicity. A supersymmetric method is used for the calculation which leads to the quantum mechanics in superspaoe of an anharmonic oscillator with hyperbolic symmetry. As a byproduct the transmission of a mesoscopic wire is obtained. The inverse of the localization length is given by the lowest eigenvalue of the oscillator.