Change the way how to generate passwords - refs BT#8692