Menu

Code modification for whole usb disk encrytpion in command line

2021-12-08
2021-12-10
  • Johan Thomas

    Johan Thomas - 2021-12-08

    Hi,

    il want to encrypt my usb disk through command line. with linux it s OK but with windows i can only encrypt a partition on the disk, not the whole disk. With graphical tool, no problem but i have to use command line in my application.
    My first question : is it normal ? maybe i dont use the good parameters.

    if it is normal, i would like to modify source code for adding this feature in command line. Could somebody help me to find where i have to do the modification please ? i am not confortable with c++😊 and with english too sorry !

    thanks !

    Johan

     
  • RealTehreal

    RealTehreal - 2021-12-08

    Hi,

    VeraCrypt's command line interface seems to be limited under Windows. When I try to encrypt a whole drive, using the following command line...

    "VeraCrypt Format.exe" /create \Device\Harddisk1\Partition0 /encryption AES /filesystem NTFS /hash SHA512 /quick /password "test123" /pim 123 /size 50G
    

    ... I get an error message: "Only container files can be created through the command line". So, it seems to me, that creating other than container files is currently not possible with Windows.

    Having a look at the documentation, it is only about creating container files via command line.
    https://veracrypt.fr/en/Command%20Line%20Usage.html

    Greets

     
  • Johan Thomas

    Johan Thomas - 2021-12-10

    Hi RealTehreal,

    Thanks for your response.

    So I understand that it is not possible to encrypt the whole USB stick through the command line.

    I have downloaded source code and compiled the setup. It seems to be ok. So now I would like to modify source code in order to enable this feature. Can somebody helps me to find where I have to unlock this feature in the code. It's possible through graphical interface so it would be possible through the commande line with some modifications.

    Thanks for your help

    Greets

    Johan

     

Log in to post a comment.

MongoDB Logo MongoDB