Version 10.3.0: pbpasswd deprecated. pbpasswd functionality is supported through the pbadmin program.

pbpasswd generates an encrypted password that can be used by the getstringpasswd() function in the configuration file. When you run pbpasswd, you can specify a password with the -i option or provide it on standard input. If standard input is a tty, then the program asks you to type the password twice; otherwise, it reads the raw password from standard input.

The program then writes the encrypted version of the password to the file that is specified by the -o option, or prints it on standard output.

  • Version 3.5 and earlier: long command options not supported.
  • Version 4.0 and later: long command options supported.
pbpasswd [options]
   -i, --password=password
   -o, --output=filename
pbpasswd –v | --versions
pbpasswd --help
-i, --password=password Optional. The password to encrypt.
-o, --output=filename Optional. Writes the encrypted version of the password to the specified output file.
-v Optional. Displays the pbpasswd version and exits.

Displays the program help message and exits.


Encrypts the string FELIX and place the encrypted result in the file /tmp/pbpasswd.out:
pbpasswd –i FELIX –o /tmp/pbpasswd.out
In this example, the string FELIX is hashed and displayed. The first line shows the command that was entered and the second line shows the hashed string.
pbpasswd –i FELIX
This example prompts for a new password, encrypts it, and displays the result in the standard output. The first line shows the command tat was entered, and the next two lines prompt for the password and prompt for the password to be retyped. The final two lines display the result of the hashed string.
Enter Password:
Retype Password:
The encrypted password is:

For more information, please see the following: