Switch(config-if)# ip address 192.168.1.10 255.255.255.0
While Type 5 was revolutionary upon its release in 1992, it is no longer considered "best practice" for high-security environments. secret 5 cisco
In newer versions of Cisco IOS and IOS-XE (starting with 15.3M), Cisco introduced much stronger algorithms: Cisco Password Types: Best Practices Switch(config-if)# ip address 192