Something unpleasant that should be endured because it will supposedly make you into a better person.
Usually used by people who consider themselves benevolent authority figures.
similar to what won't kill you makes you stronger
the army builds character
prison builds character
"The boys may not like going camping in the Sahara Desert but it's a good character building activity"