我們使用單純的命令行來實現在第一部分使用向導所完成的任務。 1、命令如下:
veracrypt -c /--non-interactive /--volume-type normal /-v /dev/sdb /--encryption aes /--hash sha512 /--filesystem Ext4 /-p 123456 /--random-source /root/anaconda-ks.cfg2、參數詳解:
參數 | 說明 |
---|---|
--non-interactive | 執行命令行時不需要用戶交互 |
-c | 生成加密磁盤 |
--volume-type | 這里指定加密磁盤的類型,是常規加密(normal ) |
還是隱藏加密(hidden ),這里指定是的normal | |
-v | 指定待加密的設備,這里使用/dev/sdb |
--encryptihion | 指定加密算法,這里使用aes |
--hash | 哈希算法,這里使用sha512 |
--filesystem | 加密后使用的文件系統格式,這里使用Ext4 |
-p | 這里指定加密磁盤的密碼 |
--random-source | 指定一個文件做為隨機字符來源, |
可隨意指定一個字符數大于320的文件 |
3、執行效果
[root@CenOS6A ~]# veracrypt -c /--non-interactive /--volume-type normal /-v /dev/sdb /--encryption aes /--hash sha512 /--filesystem Ext4 /-p 123456 /--random-source /root/anaconda-ks.cfgDone: 100.000% Speed: 81 MB/s Left: 0 sThe VeraCrypt volume has been successfully created.我們使用單純的命令行來實現在第二部分使用向導所完成的任務。 1、命令如下:
veracrypt -c /--non-interactive /--volume-type hidden /-v /dev/sdb /--encryption aes /--hash sha512 /--filesystem Ext4 /-p 147258 /--random-source //root/anaconda-ks.cfg /--size 500M2、參數詳解: 這條命令大部分參數與創建常規加密磁盤一樣,下面介紹二個不同的地方:
參數 | 說明 |
---|---|
--volume-type | 加密磁盤類型這里指定的是hidden |
-p | 這里指定的密碼是隱藏磁盤的密碼, |
需要和外層磁盤的密碼不同 | |
--size | 指定隱藏盤的大小(K|M|G),這里指定為500M |
3、執行效果
[root@CenOS6A ~]# veracrypt -c /--non-interactive /--volume-type hidden /-v /dev/sdb /--encryption aes /--hash sha512 /--filesystem Ext4 /-p 147258 /--random-source //root/anaconda-ks.cfg /--size 500MIMPORTANT: Inexperienced users should use the graphical user interface to create a hidden volume. When using the text interface, the PRocedure described in the command line help must be followed to create a hidden volume.Enter PIM:Enter keyfile path [none]:Done: 100.000% Speed: 100 MB/s Left: 0 sThe hidden VeraCrypt volume has been successfully created and is ready for use. If all the instructions have been followed and if the precautions and requirements listed in the section "Security Requirements and Precautions Pertaining to Hidden Volumes" in the VeraCrypt User's Guide are followed, it should be impossible to prove that the hidden volume exists, even when the outer volume is mounted.WARNING: IF YOU DO NOT PROTECT THE HIDDEN VOLUME (FOR INFORMATION ON HOW TO DO SO, REFER TO THE SECTION "PROTECTION OF HIDDEN VOLUMES AGAINST DAMAGE" IN THE VERACRYPT USER'S GUIDE), DO NOT WRITE TO THE OUTER VOLUME. OTHERWISE, YOU MAY OVERWRITE AND DAMAGE THE HIDDEN VOLUME!新聞熱點
疑難解答