Encodes the passed string into a hashed string via the passwordHash object. This is useful for generating replacement passwords that can be inserted into the database (if you use passwordHash).
$oApp = new cliApplication('example', 'A simple example.');
$oRequest = cliRequest::getInstance()->setApplication($oApp);
$oApp->getCommandChain()
->addCommand(new cliCommandPassword($oRequest))
$oApp->execute($oRequest);
public __construct($inRequest)
Creates a new command
public execute()
Executes the command
Tags: cli, clicommand, clicommandpassword,
cli Articles