The ctutil program accepts a global command line argument to specify the file password: ‘-o word’.
For instance, the following command creates a new file with password:
ctutil -o secretword -make file file.xdd
To open and get info of the same file:
ctutil -o secretword -info file