Service Password Encryption Command

200-301 By islever Editorial Last updated

Describe security password policies elements, such as management, complexity, and password alternatives (multifactor authentication, certificates, and biometrics)

Short answer

A Service password-encryption encrypts all plaintext passwords in the running configuration.

Question

Which global command encrypts all passwords in the running configuration?
  1. service password-encryption Correct Answer
  2. enable password-encryption
  3. enable secret
  4. password-encrypt

Key Takeaways

Tests knowledge of global configuration commands for securing credentials versus setting specific encrypted passwords.

The service password-encryption command encrypts all plaintext passwords in the running configuration. Correct answer: A.

Common mistake: Selecting enable secret because it also involves encryption, but it only secures the privileged EXEC password, not all passwords globally.

Expert Analysis

The correct answer is A. The command service password-encryption is a global configuration command in Cisco IOS that applies weak MD5 encryption to all plaintext passwords currently stored in the running configuration, such as those set with the enable password or line vty commands. This ensures that sensitive credentials are not visible in plain text when viewing the configuration file.

Option C, enable secret, is often confused with this task but serves a different purpose: it sets an encrypted privileged EXEC mode password using a stronger MD5 hash (or SHA-256 in newer versions). While it encrypts a specific password upon entry, it does not act as a global toggle to encrypt all existing plaintext passwords in the configuration file. Options B and D are invalid commands in standard Cisco IOS.

Exam Strategy

When asked about encrypting 'all' or 'global' passwords, look for the 'service password-encryption' command. If the question asks about setting a secure privilege password, choose 'enable secret'. Distinguish between global encryption toggles and specific password setting commands.

Frequently Asked Questions

Does service password-encryption protect enable secret?

No. Enable secret uses a stronger hash by default and is not affected by the service password-encryption command, which targets weaker MD5 encryption for other password types.

Is service password-encryption considered strong security?

It provides basic obfuscation against casual observation but is not cryptographically strong. It should be combined with enable secret and AAA services for robust security.

More 200-301 FAQ →

Community Votes

A
100%

100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 2 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 2

  1. sdmejia01 👍 8 Answered A
    Correct answer is A. https://community.cisco.com/t5/other-network-architecture-subjects/service-password-encryption-command/td-p/269324
  2. maximus_007 👍 1 Answered A
    A is the correct answer.

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All 200-301 Questions

Access 220 questions with complete answers and detailed explanations.

View Full 200-301 Practice Test →

← Back to 200-301 Study Guide