網路城邦

上一篇 回創作列表 下一篇   字體:
Warning: gpg --sign file.txt, Does not encrypt the file.
2022/09/17 12:14:05瀏覽92|回應0|推薦0

Recently, I tried to encrypt my files with
my private key. I found a article on internet
which suggests --sign.

gpg --sign file.txt

After more searching and reading, I found
that gpg defaultly compresses a file. Although
a singned file contains meaningless characters,
but its compressed, not encrypted. I did
a test:

gpg -s -z 0 file.txt

"-z 0" means no-compression. A signed file
file.txt.gpg was produced.

cat file.txt.gpg

We can see the plain text.

                
( 知識學習科學百科 )
回應 推薦文章 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=ant2legs&aid=177172185