The court before which any person shall be convicted of any criminal offense shall have power, in addition to the sentence prescribed or authorized by law, to require such person to give security to keep the peace or be of good behavior, or both, for a term not exceeding two years, or to stand committed until such security be given.
§ 546.650, RSMo