Highlighted
mike_se Contributor.
Contributor.
138 views

PPM Support Tip: Escape special characters in kEncrypt.sh passwords

When using kEncrypt.sh with a $ symbol in the password on Linux platform, escape the $ in the password


Run $ ./kEncrypt.sh -t "test$123" through command prompt.

Password shows as "test23" instead of "test$123".


"$" is a special character to quote variables in the shell.

Escape the "$" in the password before passing it to the kEncrypt.sh.
Replace the "$" in the password with "\$".

For example: sh ./kEncrypt.sh -t "test\$123"

“HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”
Labels (1)
0 Likes
1 Reply
Absent Member.. Jim Esler Absent Member..
Absent Member..

Re: PPM Support Tip: Escape special characters in kEncrypt.sh passwords

UNIX shells have a set of characters that have special meaning. The dollar sign is one. Other common special characters are the backslash (\), double quotes (") and backtick (`). Since the command line used to call kEncrypt.sh will first be processed by the shell, any special character needs to be preceeded by the escape character (\). Check the documentation for the shell you are using for a list of special characters that it defines.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.