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

genpassword -prefix encoding -password text
-prefix encoding
Where encoding is the encoding prefix to be applied to the password.

For more information, see Encoding prefix.

-password text
Where text is 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 myvalue using the ae2h6 prefix, use:
genpassword -prefix ae2h6 -password myvalue
Output:
ae2h6::6f24c44dce19b6289f54e1e0e65f11c8eb3dec4a4f6d67ca17a6fedb6528f683a40e70811479f7c32dd784c42b35cf51

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

genpassword -password text -verify encoded-password 
-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:

genpassword -password myvalue -verify ae2h6::6f24c44dce19b6289f54e1e0e65f11c8eb3dec4a4f6d67ca17a6fedb6528f683a40e70811479f7c32dd784c42b35cf51
Output:
The passwords match.

Get help

Use genpassword to get help for the utility.

Example

genpassword
Output
usage: genpassword -prefix <encoding> -password <text>
    or genpassword -password <text> -verify <encoded password>
valid prefixes: ae1{b|h}{1-9}, ae2{b|h}{1-9}, nopr0, oeph{0-9}