Menu

command-line /create with keyfile

Pavel
2017-03-06
2019-12-29
  • Pavel

    Pavel - 2017-03-06

    Hi,
    I am not sure if this should be in "Technical Topics" or "Feature requests" forum.
    I am using WIndows 7 and creating .bat file. I need to create encrypted file container. It should be encrypted by keyfile (stored on Safenet eToken 7300 4GB). I was searching ( https://veracrypt.codeplex.com/wikipage?title=Command%20Line%20Usage ) and googling but I can't find any relevant information. If I get it right than command-line version of veracrypt is able to mount encrypted volume/container with keyfiles but is not able to create/format new one using keyfiles, am I right?
    Thank you for any hints,
    Pavel

     
  • Epifas

    Epifas - 2017-03-19

    On linux -k <keyfile> is the option for keyfiles. It can be used on creation or mounting.

     
  • Pavel

    Pavel - 2017-04-29

    Thank you very much. You are right, I have found parameter "-k" on linux. That is great info for me that at least in linux it is working. I was trying the same procedure with Veracrypt on WIndows but unfortunatelly there is no "/k" parameter. However thank you very much for linux info.

     
  • JIexa34Pyc

    JIexa34Pyc - 2018-11-19

    Hi,
    will the / keyfile option ever work in the command line for Windows?
    ps
    for VeraCrypt Format
    pss
    I found the answer to my question on the forum (not working yet).
    In the future, plan to add such a parameter for VeraCrypt Format in the command line for Windows.

     

    Last edit: JIexa34Pyc 2018-11-19
  • Julius

    Julius - 2019-01-26

    Hi,
    like Pavel, we need this ability (to create volumes with a keyfile stored on a smartcard) for Windows, in our case several hundred PCs. Unfortunately we don't have own developers to help on this.
    Is there any possibility to support an early development e.g. by funding it?
    Best regards,
    Julius

     
  • bahadoer

    bahadoer - 2019-12-23

    Hi there,

    I would also like to see this option for the commandline in Windows. Is there any one who can help us with this?

     
  • bahadoer

    bahadoer - 2019-12-29

    So I decided to do it myself. The zip file contains all the necessary files to create an encrypted fault through the command line with a keyfile option and to mount/unmount that fault to a drive letter. I haven't tested it extensively but it works for me.

    Creating a fault can be done like this :

    "VeraCrypt Format.exe" /create "C:\tmp\veracryptoutput" /keyfile "C\tmp\opensslkey" /hash Whirlpool /encryption AES /filesystem NTFS /size 20M /force /silent

    Mounting that fault on P-drive :

    VeraCrypt.exe /q /v "C:\tmp\veracryptoutput" /l p /k "C:\tmp\opensslkey" /hash whirlpool /tryemptypass /silent

    Unmounting the fault:

    VeraCrypt.exe /q /d p

    P.S.
    Use at your own risk ,

    I do not make any warranties about the completeness, reliability and accuracy of this program. Any action taken upon the information in this post is strictly at you own risk, and I will not be liable for any losses and damages to your data of any sort.

     

    Last edit: bahadoer 2020-01-08

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.