Encrypt passwords with mfcEncryptPassword

This topic describes how to encrypt passwords and secrets for different configurations using the mfcEncryptPassword utility, allowing to keeping the secrets not in plain text form.

Preparation:

Put the password you want to encrypt in a text file. This ensures your password is not presented in command history.

You can also enter the password in command line during using the utility. This is allowed for an isolated or secure system.

To encrypt a password using the mfcEncryptPassword utility:

  1. Open a terminal (cmd for Window and bash for Linux).

  2. Run: cd <install-dir>\Utilities

  3. Run: mfcEncryptPassword

    If you already keep the password in a text file, do the following:

    • Windows:

      type c:\path\to\passwordfile.txt|mfcEncryptPassword.bat

    • Linux:

      cat /path/to/passwordfile|mfcEncryptPassword.sh

    If you want to provide the password in the command line, do the following:

    • Windows:

      echo mypassword|mfcEncryptPassword.bat

    • Linux:

      echo mypassword|mfcEncryptPassword.sh

  4. Check the encrypted password generated by the utility. It is a long text like the following:

    8ELkTHN5wsW+pG09A....jr/jOi/IRJkV36tN77bE

  5. Copy and paste the encrypted password to the required configuration, replacing the plain-text password or secret.

Back to top