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!

Овај сајт ће имати ограничену функционалност док га будемо ажурирали у циљу побољшања вашег искуства. Ако неки чланак не реши ваш проблем и желите да поставите питање, на располагању ће вам бити наше заједнице подршке @FirefoxSupport на Twitter-у и /r/firefox на Reddit-у.

Претражи подршку

Избегните преваре подршке. Никада од вас нећемо тражити да зовете или шаљете поруке на број или да делите личне податке. Пријавите сумњиве радње преко „Пријавите злоупотребу” опције.

Сазнај више

Encrypted attachments cannot be opened or saved as decrypted files

  • 2 одговорa
  • 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