You are here: Basic Encoding > Locking a File with a Password

Locking a File with a Password

MG2 and MG3 support protecting output files so that a user must supply a password in order to decode or view them. (MG4 and JP2 do not support passwords.)

The -password or -pw switch accepts a password string that must not contain any spaces. For example:

-pw jpx678

creates a file with an access password of "jpx678".

NOTE: GeoExpress does not allow password-protected files to be used as input.

NOTE: Only image data is encrypted; geocoordinates and other metadata are still accessible in password-protected files.