1
I'm trying to auto-mount a VeraCrypt volume with the correct password, PIM and then wipe the cache.
If I try this via the terminal it works fine, like so:
/Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt --auto-mount=favorites --pim 243 --password=mysupersecurepassword /c
I've also tried to to separate the arguments of the command into individual commands such as:
<string>/Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt --auto-mount=favorites</string>
<string>--pim 243</string>
<string>--password=mysupersecurepassword</string>
Unfortunately, I'm not a programmer and don't have any grasp of basic syntax, so I'm just trying to following other guides and instructions which are failing me. Any ideas what's wrong in the code?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd>
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.veracrypt.auto-mount-favorites</string>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt --auto-mount=favorites --pim 243 --password=mysupersecurepassword /c</string>
</array>
</dict>
</plist>
Code aside, isn't that quite against the point of encryption? If your password is stored on your hard disk in plain text, anybody who has physical access to that machine could decrypt that volume. – gronostaj – 2017-11-03T08:21:58.227
The password is on an encrypted drive (with 2FA) to no one has access to, unless they have the password, that is different from the volume. And I'm aware of any risks. Just trying to get the code to work. – VforVendetta – 2017-11-03T08:39:35.260