GlideEncrypter to the Rescue!
ServiceNow handles passwords in the Password field type. For encoding/decoding some help of the GlideEncrypter is needed.
Organizing Numbered Choice Values
Good code is self-explanatory. Handling choice values based on numbers needs some extra effort to achieve this goal.