ruby写的管理加密卷的工具

由本社区发起的开源项目
回复
头像
xrfang
帖子: 1116
注册时间: 2006-12-08 10:21

ruby写的管理加密卷的工具

#1

帖子 xrfang » 2009-05-08 16:26

前些日子用MDV的时候找不到truecrypt,后来听说TC由于版权有问题,说不是开放软件,建议不要用,说有法律风险。我到IRC上一问,一个老兄推荐用Linux内核自带的加密功能。用下来不错,就写了这个管理小工具。要安装Ruby,并确保系统上装了losetup, cryptsetup,sodu也是可以用的(MDV有点麻烦,Ubuntu没有问题)。
evm20090508.tar.gz
(3 KiB) 已下载 84 次

代码: 全选

Encrypted Volume Manager v0.01
Manage dm-crypt volumes on Linux (for help, use -h)

USAGE: evm <action> [options] [volume-name] [key-file]
  PARAMS
    volume-name           volume name to operate on
    key-file              new key file to supply to --create, --key-add, 
                          --key-remove or --revoke
  ACTIONS
    -c, --create          create a new encrypted volume
    -m, --mount           mount the specified volume
    -u, --umount          unmount the specified volume
    -U, --umount-all      unmount all volumes
    -a, --key-add         add a key to the volume
    -r, --key-remove      remove a key from the volume
    -R, --revoke=SLOT     revoke specified key slot
    -d, --dump            dump LUKS header information of the volume
    -h, --help            show this help message
  OPTIONS
    -f, --format=FMT      specify format when creating new volume. FMT
                          can be any file system format supported by
                          mkfs(8). Default: ext3
    -s, --size=SIZE       specify size when creating new volume. Use of
                          K, M and G suffix is allowed. Defaut: 100M
    -k, --key=FILE        use a key file instead of enter a passphrase.
                          Note: this is the key to unlock a volume, to
                          add or remove a key file, pass it through the
                          key-file command-line parameter
    -v, --verbose         show verbose output for debugging purpose
你爱用不用,没人逼你用--这就是Free的定义?
不,请自重,不要玷污Linux文化。
头像
想入非非
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
联系:

Re: ruby写的管理加密卷的工具

#2

帖子 想入非非 » 2009-05-08 17:11

感谢分享不过没有什么加密的需求,害怕出现什么问题
Ubuntu User
头像
xrfang
帖子: 1116
注册时间: 2006-12-08 10:21

Re: ruby写的管理加密卷的工具

#3

帖子 xrfang » 2009-05-08 17:27

关键是有没有需求,问题是不会有的。我这程序其实就是一个批处理,调用linux的losetup和cryptsetup。这还信不过?呵呵。我用这个加密,然后上传到Dropbox,而我的Dropbox在3台机器上登录。相当于异地备份,特别方便,舒服。
你爱用不用,没人逼你用--这就是Free的定义?
不,请自重,不要玷污Linux文化。
回复