ChinaUnix.net
相关文章推荐:

gpg命令

来源: 网海拾贝 介绍gpg命令加密文件的 方法 在 Linux 下,用gpg命令就可以实现文件的加密和解密,而且gpg基本上每个发行版都会预装。 假如你要加密的文件名为 diary.txt ,只需输入: gpg -c diary.txt 会自动弹出对话框询问加密密码: 经过两次输入密码确定,就会在目录下生成 diary.txt.gpg,这个就是加密后的文件,不要忘记把原文件删掉哦~ 解密的话,输入: gpg diary.txt.gpg 输入正确的密码,diary.txt 就会...

by sdccf - Linux文档专区 - 2008-05-23 14:55:16 阅读(586) 回复(0)

相关讨论

作者: Lisboa 出自: http://www.linuxdiyf.com 一、gpg(GNU privacy guard) 在 Linux 下,用gpg命令就可以实现文件的加密和解密,而且gpg基本上每个发行版都会预装。 假如你要加密的文件名为 secret.txt :#gpg -c secret.txt 会自动弹出对话框询问加密密码: 经过两次输入密码确定,就会在目录下生成 secret.txt.gpg,这个就是加密后的文件,不要忘记把原文件删掉哦~ 解密:#gpg secret.txt.gpg 输入正确的密码,secret.txt 就会...

by sdccf - Linux文档专区 - 2008-04-09 22:49:07 阅读(488) 回复(0)

RT! 已经yum update成功了。结果安装源代码文件时候, 需要gpg --verify ....asc时候提示:[code]-bash: gpg: command not found[/code]该咋解决捏??求问!

by laohuanggua - Linux新手园地 - 2010-06-21 17:24:26 阅读(1003) 回复(0)

gpg is the OpenPGP part of the GNU Privacy Guard (GnuPG). It is a tool to provide digital encryption and signing services using the OpenPGP standard. gpg features complete key management and all bells and whistles you can expect from a decent OpenPGP implementation. This is the standalone version of gpg. For desktop use you should consider using gpg2. 简单说,gpg(GnuPG的一...

by linewer - Linux文档专区 - 2009-03-13 23:31:38 阅读(676) 回复(0)

gpg简介: gpg (GnuPG)   随着网络与计算机技术的发展,数据存储与数据交换的安全性已经变得越来越重要,加密技术已经很 早就用于数据存储和数据交换。为了确保网络数据交换时的双方身份的正确性,签证体系也已经成熟。gpg就是用来加密数据与制作证书的一套工具,其作用与 PGP类似。但是PGP使用了许多专利算法。gpg是GPL软件,并且没有使用任何专利加密算法,所以使用起来有着更多的自由。   具体的说,gpg是实现安全通讯...

by ybu2008 - Solaris文档中心 - 2008-10-19 14:09:11 阅读(1727) 回复(0)

gpg,gnupg,绕死~ gpg --gen-key 生成一对key先; gpg --list-key 列出系统公钥; gpg --list-secret-key 列出系统私钥; 要给对方public key加密文件,首先导出pub key给对方-- gpg -o pubkey_file --export uid 收到文件后可以导入-- gpg --import pubkey_file 这样加密文件: gpg -r uid --trust-model always --yes -e file 会在file目录下生成一个file.gpg文件 (这里是要用-r,而不是-u, -r是代表接收人,-u 是发送人,所以加密是...

by stlaw - Linux文档专区 - 2008-08-27 18:02:48 阅读(688) 回复(0)

by tangke 200-06-05 数字加密: 加密的传统方法只用一把密钥加密。发出讯息者用这把钥匙对讯息加密。接收讯息者需要有完全相同的钥匙才能将加密了的讯息解密。这把钥匙必须以一种其他人没有机会得到它的方式给予接收讯息者。如果其他人得到了这把钥匙,这种加密方式就没用了。 使用一种称为"公开钥匙"的方法可以解决这个问题。公开钥匙的概念涉及两把钥匙。一把钥匙称为"公开钥匙"(公钥),可以以所有方式传递,任何人都可以得到...

by fewlife - Linux文档专区 - 2009-07-22 20:35:27 阅读(688) 回复(0)

9.gpg #生成密匙 代码:gpg –gen-key#显示密匙,公匙,私匙 代码:gpg --list-keys gpg --list-public-keys gpg –list-secret-keys#以ascii形式dump出公匙,私匙。 代码:gpg --export -a userID >public.key gpg --export-secret-key -a userID>secret.key#导入key.file 代码:gpg --import key.file# 加密生成signaure和公匙加密的文件。 代码:gpg -se -r userID file#加密生成没有signaure的加密文件。 代码:gpg -e -r userID f...

by sun9527 - Linux文档专区 - 2008-08-05 08:23:45 阅读(513) 回复(0)

When I run gpg command for code encryption, a warning message and prompt question were displayed as followings. Then I have to hit ‘yes’ to get done. Actually, the command is wrapped in the shell script file for a specific process, in which the command will always wait for prompt input when the scheduled process is automaticlly executed. \r\n\r\n--------\r\n$ gpg --armor --recipient xxx --output...

by bigtong - AIX - 2006-12-16 00:16:15 阅读(3371) 回复(3)

LinuxIDC在 Ubuntu 下 更新 源列表时出现了以下的情况,当时 自己 是把第三方的软件源删掉即可。不过听朋友说还有以下的解决方法。 情况及解决方法摘记如下: 正在读取软件包列表... 完成 W: gpg签名验证错误: http://deb.opera.com unstable Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY 03343153[color="#ff0000"]6A423791 W: 您 可能 需要运行 apt-get update 来解决这些问题 需要把上面两行命令中的“4F6C1E86”...

by msj0520 - Linux文档专区 - 2009-11-12 16:14:47 阅读(594) 回复(0)

gpg加密及签名 1、先产生密钥对 #gpg --gen-key 这样会在用户家目录生成一个./gnupg的目录,然后会要求你回答一系列问题,前面三个按默认即可。 进入到real name,是要求你输入用户ID,注意姓名要5个字符长。这里假设为davidway 在Email address处,填写上自己的邮箱地址,假设为 [email=davidway@yahoo.com.cn]davidway@yahoo.com.cn[/email] 在comment处,填写一些注释信息 输入大写字母“O”,回车确认。 在Enter passphrase处...

by dominic_80 - Linux文档专区 - 2009-11-03 17:07:53 阅读(810) 回复(0)