Final answer:
The command that encrypts a password for enable mode access in network devices is 'enable secret'. It differs from 'enable password', which stores passwords in clear text unless 'service password-encryption' is used.
Step-by-step explanation:
The configuration command that encrypts a clear-text password for gaining access to enable mode is the enable secret command. When you set an enable secret password, the password is automatically encrypted before being stored in the router's configuration file. This is different from the enable password, which stores the password in clear text unless combined with the service password-encryption command, which encrypts all clear-text passwords in the configuration. The password 7 option you mentioned refers to an already encrypted password that is included in the configuration, not the command to encrypt a password.