genpassword
- Last Updated: January 23, 2026
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Use the command line tool,
genpassword to:- Generate an encoded value based on a clear-text value.
- Verify the clear-text value against an encoded value.
Encode a value
Accepts the clear-text value and generates an encoded value based on the encoding prefix. It returns the encoded string.
| Operating system | Syntax |
|---|---|
|
UNIX
Windows |
|
- -prefix encoding
- Where
encodingis the encoding prefix to be applied to the password.For more information, see Encoding prefix.
- -password text
- Where
textis the clear-text value of a password or passphrase.- Passwords cannot contain spaces.
- Passphrases must have quotes and contain white space.
Example:
To generate an encoded value for the clear-text
Output:myvalue using the ae2h6 prefix, use:
|
|
Each use of genpassword may generate a unique value, but internally
OpenEdge resolves those values to the same clear-text value.
Verify a password
Accepts an encoded value to verify against a clear-text value.
| Operating system | Syntax |
|---|---|
|
UNIX
Windows |
|
- -password clear-text
- Clear-text value.
- -verify
-
Verifies whether the encoded value and the clear-text value match.
- encoded-password
- Encoded value displayed as text.
Example:
To verify the encoded password matches the original clear-text myvalue,
use:
|
Output:
|
Get help
Use genpassword to get help for the utility.
Example
|
|