手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

CentOS中使用VeraCrypt详解

不使用向导创建加密磁盘

[日期:2017-12-21] 来源:CSDN  作者:cmzsteven [字体:大 中 小]

一、创建常规加密磁盘

我们使用单纯的命令行来实现在第一部分使用向导所完成的任务。
1、命令如下:

veracrypt -c --non-interactive --volume-type normal -v /dev/sdb --encryption aes --hash sha512 --filesystem Ext4 -p 123456 --random-source /root/anaconda-ks.cfg

2、参数详解:

参数说明
--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.cfg

Done: 100.000%  Speed:   81 MB/s  Left: 0 s

The 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 500M

2、参数详解:
这条命令大部分参数与创建常规加密磁盘一样,下面介绍二个不同的地方:

参数说明
--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 500M

IMPORTANT: 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 s

The 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!
linux
【内容导航】
第1页:安装及创建整个加密硬盘 第2页:加密卷类型
第3页:不使用向导创建加密磁盘 第4页:进阶操作
相关资讯       VeraCrypt  VeraCrypt使用 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款