为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Encrypted attachments cannot be opened or saved as decrypted files

  • 2 个回答
  • 1 人有此问题
  • 19 次查看
  • 最后回复者为 Michael

more options

Name Thunderbird Version 78.4.1 Build ID 20201104231226 on Win 10

When I try to "decrypt and open" a pgp encrypted mail attachment, nothing happens. Using "decrypt and save as ..." opens the directory selector but no file is saved.

Running Thunderbird with -jsconsole provides the following error messages:

CryptoAPI.sync() failed result: Error: Not implemented

   getFileName chrome://openpgp/content/modules/cryptoAPI/RNPCryptoAPI.jsm:179
   getFileName chrome://openpgp/content/modules/attachment.jsm:18
   decryptAttachmentCallback chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2732
   f chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2675
   onStopRequest chrome://openpgp/content/modules/streams.jsm:78
   callbackWrapper chrome://openpgp/content/modules/timer.jsm:30
   notify resource://gre/modules/Timer.jsm:62

interface.js:46:17 CryptoAPI.sync() failed result: Error: Not implemented

   decryptAttachment chrome://openpgp/content/modules/cryptoAPI/RNPCryptoAPI.jsm:209
   decryptAttachment chrome://openpgp/content/modules/decryption.jsm:630
   decryptAttachmentCallback chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2828
   f chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2675
   onStopRequest chrome://openpgp/content/modules/streams.jsm:78
   callbackWrapper chrome://openpgp/content/modules/timer.jsm:30
   notify resource://gre/modules/Timer.jsm:62

interface.js:46:17 Uncaught (in promise) TypeError: result.stdoutData is undefined

   decryptAttachment chrome://openpgp/content/modules/decryption.jsm:634
   decryptAttachmentCallback chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2828
   f chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2675
   onStopRequest chrome://openpgp/content/modules/streams.jsm:78
   callbackWrapper chrome://openpgp/content/modules/timer.jsm:30
   notify resource://gre/modules/Timer.jsm:62
Name Thunderbird Version 78.4.1 Build ID 20201104231226 on Win 10 When I try to "decrypt and open" a pgp encrypted mail attachment, nothing happens. Using "decrypt and save as ..." opens the directory selector but no file is saved. Running Thunderbird with -jsconsole provides the following error messages: CryptoAPI.sync() failed result: Error: Not implemented getFileName chrome://openpgp/content/modules/cryptoAPI/RNPCryptoAPI.jsm:179 getFileName chrome://openpgp/content/modules/attachment.jsm:18 decryptAttachmentCallback chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2732 f chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2675 onStopRequest chrome://openpgp/content/modules/streams.jsm:78 callbackWrapper chrome://openpgp/content/modules/timer.jsm:30 notify resource://gre/modules/Timer.jsm:62 interface.js:46:17 CryptoAPI.sync() failed result: Error: Not implemented decryptAttachment chrome://openpgp/content/modules/cryptoAPI/RNPCryptoAPI.jsm:209 decryptAttachment chrome://openpgp/content/modules/decryption.jsm:630 decryptAttachmentCallback chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2828 f chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2675 onStopRequest chrome://openpgp/content/modules/streams.jsm:78 callbackWrapper chrome://openpgp/content/modules/timer.jsm:30 notify resource://gre/modules/Timer.jsm:62 interface.js:46:17 Uncaught (in promise) TypeError: result.stdoutData is undefined decryptAttachment chrome://openpgp/content/modules/decryption.jsm:634 decryptAttachmentCallback chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2828 f chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2675 onStopRequest chrome://openpgp/content/modules/streams.jsm:78 callbackWrapper chrome://openpgp/content/modules/timer.jsm:30 notify resource://gre/modules/Timer.jsm:62

所有回复 (2)

more options

Digging in a bit deeper ... seems like this feature is not implemented yet? RNPCryptoAPI.jsm:

 /**
  *
  * @param {byte} byteData    The encrypted data
  *
  * @return {String or null} - the name of the attached file
  */
 async getFileName(byteData) {
   throw new Error("Not implemented");
 }
 /**
  *
  * @param {Bytes}  encrypted     The encrypted data
  *
  * @return {Promise<Object>} - Return object with decryptedData and
  * status information
  *
  * Use Promise.catch to handle failed decryption.
  * retObj.errorMsg will be an error message in this case.
  */
 async decryptAttachment(encrypted) {
   throw new Error("Not implemented");
 }
more options

Checking again with Thunderbird 78.6.0 (64-bit) Release notes states: "fixed OpenPGP: Encrypted attachment "Decrypt and Open/Save As" did not work"

But I still can't decrypt attachments, getting an error message.

Console logs "bad message, missing MDC" decryption.jsm:526:15

 getPlaintextFromDecryptResult(result) {
   if (result.statusFlags & EnigmailConstants.MISSING_MDC) {
     console.log("bad message, missing MDC");

由Michael于修改