0

我在我的电脑上使用 Symantec Encryption Desktop v.10.3.0 和 Microsoft Outlook v. 14.0.6129.5000(32 位)。

我使用 SEC 加密包含文本文档的 zip 文件,然后附加加密存档 (filename.zip.pgp) 并通过 Microsoft Exchange Server 发送。

如果我手动执行此过程,接收器将获得一个包含 zip 的 *.pgp 附件,其中包含一个 *.txt 文件。

如果使用 python 的smtplibemail模块发送电子邮件和gnupg模块进行加密,我有以下问题:

如果接收方将 .pgp 存档保存在她的磁盘中,然后使用 SEC,则文件可以正常打开。

但是,如果接收者在 Outlook 中双击附件,则会打开 pgp 文件,显示 *.txt 文件(而不是 zip 文件),文件名如下:“filename zip.txt”

这当然是 zip 文件,但具有不同的扩展名 (txt)。

任何人都知道为什么会这样?

4

1 回答 1

0

As far as I recall, when Symantec Encryption Desktop creates a PGP file, it is also zipping. This is how I used the Symantec Command Line API tool, as I would select multiple files for encryption and they would end up in a single file (like a zip).

So, you would probably remove any Outlook quirks by just PGPing the txt file, without the zip step in the middle.

于 2014-04-07T21:48:55.470 回答