The startup-config and running-config files display most passwords in plaintext. If you want to encrypt those passwords you can use "service password-encryption" global config command. For example
Sw-Floor-1>en
Sw-Floor-1#config t
Enter configuration commands, one per line. End with CNTL/Z.
Sw-Floor-1(config)#service password-encryption
Sw-Floor-1(config)#exit
Sw-Floor-1#
Now if we look at the running configurations, we can see that passwords are encrypted
line con 0
!
line vty 0 4
password 7 0822455D0A16
login
line vty 5 15
password 7 0822455D0A16
login
!