When setting a password against the console, auxiliary and vty lines on a cisco router, unless password encryption is switched on the passwords will be displayed when viewing the config on the terminal screen
conf t
service password-encryption
To turn it off again
no service password-encryption