Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

Encrypted attachments cannot be opened or saved as decrypted files

  • 2 fhreagra
  • 1 leis an bhfadhb seo
  • 19 views
  • Freagra is déanaí ó 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

All Replies (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");

Athraithe ag Michael ar