The database mode, encryption type and password can also be specified from the command line. This lets you create a shortcut to a database on a removable or portable drive which can be opened automatically.

Arguments

Argument Meaning Required Example
db Database path. No, but if omitted all other required database attributes (hostname, username, databasename) must be specified.
  • -db=E:\lockcrypt.lce
  • -db="E:\path with spaces\lockcrypt.lce"
dbhost Database Hostname No
  • -dbhost=192.168.2.15
  • -dbhost=lime49.com
  • -dbhost=pegasus
dbport Database Port Number No
  • -dbport=3306
dbuser Database Username No
  • -dbuser=spike
dbpass Database Password No
  • -dbpass=P@55word
dbdatabase Database Name No
  • -dbdatabase=lockcrypt
mode or m Database mode No, but if present must be one of:
  • xml
  • sqlite
  • mysql
  • legacy
  • -m=xml
  • -mode=sqlite
encryption or e Encryption Algorithm No, but if present must be one of:
  • none
  • aes256
  • twofish256
  • -e=aes256
  • -encryption=none
pw Password No
  • -pw=guessme
? Show help No

Arguments are not case sensitive, and can be specified by either a dash (-db=myfile.lce) or a slash (/db=myfile.lce).

If only a path is specified, LockCrypt will try to detect the filetype and try each encryption algorithm, assuming a blank password.

If only one argument is specified, it is assumed to be a path to a path to a database descriptor file.

Examples