This class implements a command line utility for creating and reading stash
files. The stash file stores two passwords in encrypted form. When the file
is being written the password are being enrypted and when the file is being
read the password are being decrypted by this utility. These two passwords
are passed as command line parameters to this utility. Utility usage:
StashFile [ []]
Only the password is required. The and
are optional. If only a single password is specified
at the command line, then only this single password is written to the stash
file. If two passwords and a security provider are passed then the provider
will be used for the cryptography (both passwords may be equal).
Reads the passwords from a specified stash file. This method will not
complain that it has been called more than once.
Note: This method is for internal usage only. Any dependency from
the end-user will not be supported. Changes to this class will happen
without a warning.
Parameters:
aStashFile - the path of the stash file
Returns:
a vector containing the passwords
Throws:
Exception - if the stash file has already been read
The main method of the command line utility class. Takes as arguments one
or two passwords. The first one is the key store password and the second
is the key password.