上了这么久的红联没看到什么有关加密的,而且那些也不太适合已经装好系统,没什么空间的朋友们。弄这个上次查了几个小时后,总算弄明白了。
依赖关系为:
FUSE : 2.5 or newer for the latest EncFS
rlog : a C++ logging library (also by me - see also rlog)
OpenSSL - versions 0.9.6 and 0.9.7 have been tested
encfs
上面的那些在YUM里面更新就行了。
弄好之后重启。就行了。
这个加密是在CLI下的进行的。它可以加密任意目录,不过在第一次用的时候,得保证目录内是空的。
我的设置如下:
新建 /home/pu/.encrypted /home/pu/plain
加载方式为在CLI下输入 encfs ~/.encrypted ~/plain 这个打开的是第一个密码。
encfs --anykey ~/.encrypted ~/plain 打开的是第二个密码
plain那个只是挂载目录,文件真实存在是/home/pu/.encrypted目录中。
第一第创建的时候,选P就行了。
以下是在网上的找的一个脚本
#!/bin/bash
usage(){
echo "crypt [m|mount|u|unmount]"
echo " either mounts or unmounts encrypted file system"
}
if [ -z $1 ]
then
usage
exit
fi
case "$1" in
"m" | "mount" )
/usr/bin/encfs ~/.encrypted ~/plain
echo "Encrypted filesystem now mounted"
;;
"h" | "mount" )
/usr/bin/encfs --anykey ~/.encrypted ~/plain
echo "Encrypted filesystem now mounted"
;;
"u" | "unmount" )
/usr/bin/fusermount -u ~/plain
echo "Encrypted filesystem has been unmounted"
;;
* )
usage
;;
esac
把上面的复制到文本编辑器中,然后保存好(名字最好简单点,那样好输入)。在终端中输入chomd +x filename
运行的方式是sh filename m 或者 sh filename u sh filename h. ./filename m 或者./filename u
好了,基本就这样了。
更为详细的资料,在下面的网址中:
http://argo.net/wiki/encfs
http://www.linux.com/articles/114147
[ 本帖最后由 leaf1988 于 2007-10-3 05:26 编辑 ]

