Using the password Command Set

The `password` command set contains commands for managing a catalog of username and password entries protected by end to end encryption.

Adding passwords

The `password add` command adds a username/password entry to the credentials catalog associated with a profile:

Alice adds the username and password for an ftp service to her catalog:

Alice> password add alice1 password = [password]
Alice> password add newpassword = [newpassword]

Synchronizing passwords to an application.

The `password list` command lists all the passwords in the catalog:

Alice> password list


The output of the list command may be used to configure a user application such as a Web browser that supports password management. But care is obviously required as the passwords will only be as secure as the other application.

Finding passwords

The `password get` command retreives the username and password values for a specified service:

Alice> password get = [newpassword]

Using Credentials in scripts

Alice can use Mesh to provide an *aide memoire* for credentials for access credentials for sites she rarely visits. She can also use it as a tool to allow scripted access to remote services requiring username and password authentication without putting those credentials in the script itself.

The commands for doing this vary according to the scripting environment.


```` set credential = "" for /f "delims=" %%a in ('meshman password get')^ do @set credential=%%a ````

Most Unix shells, including Bash, the following syntax may be used:

```` set credential=`meshman password get` ````

Updating passwords

Having automated access to the ftp site, Alice doesn't need her password to be either memorable or conveniently short. She decides to replace her bad password with a strong password that is randomly generated:

Alice> password add alice1 newpassword = [newpassword]

Deleting passwords

Password entries may be deleted using the `password delete` command:

Alice> password delete

Adding a Device.

When a device is added, it gets a copy of the password file:

Alice> device auth Alice2 /password