Encrypting a Password

Use the passencrypt utility to encrypt passwords and other values that must be kept secure while stored in text files.

You can safely store an encrypted password in a properties file. Enter the password in clear text (unencrypted) when you execute passencrypt and when you use the password to log in.

passencrypt, which is located in the Sybase Control Center bin directory, uses the DES encryption algorithm.

  1. Open a command window and change to the bin directory:
    • Windows: cd <SCC-install-directory>\bin
    • UNIX: cd <SCC-install-directory>/bin
  2. Encrypt a password:
    passencrypt -text <new_password>
    The passencrypt utility encrypts the password you enter and displays the password in encrypted form.
  3. Copy the encrypted password.
  4. Paste the encrypted password where needed.
  5. When you have encrypted all the passwords you need, immediately close the command window—it displays passwords in clear text.