I used to be able to encrypt JS files and filenames and send over Gmail. But I just found I cannot do it anymore and it is saying there are executables found in the compressed file. How could Gmail detects file contained in an encrypted package with filenames also encrypted? And is there any workaround?

Update: After reading the answer in the post provided by @Blind Spots, it seems like no encrypted file can be send (I also tried myself).

  • 1
    The solution I found was wetransfer.com
    – Nick
    Nov 23 at 16:36
  • @Nick That is a horrible idea.
    – Gantendo
    Nov 23 at 17:25
  • @Gantendo why? It works.
    – Nick
    Nov 23 at 17:53
  • @Nick It is rather inconvenient compared to the method I posted below. WeTransfer is full of ads and trackers. WeTransfer is also quite buggy.
    – Gantendo
    Nov 23 at 18:13
  • Easy, rename the exe extension to something like jpg, it will send now. Receiver has has to rename them back.
    – Moab
    Nov 23 at 23:07

I have encountered the same problem and didn't find any workaround for it. Gmail is now much more strict about attachments.

My solution was to upload the file to some online service, in my case Dropbox, and transmit instead a shared link to the file. Note that the generated link should be as anonymous as possible and the file should be uploaded to a publicly accessible section of your online service storage.

  • 1
    @Gantendo: Google Drive is a specific example of the recommendation made by harry "upload the file to some online service, and transmit instead a shared link to the file"
    – Ben Voigt
    Nov 23 at 19:24
  • I see this option. However I am expecting a more direct way, i.e. not depending on other applications. But I do not want to manipulate too much, e.g. revert the binaries and output to a txt as hexadecimals. I will accept your answer if no better approach answered. Nov 24 at 1:17
  • @BenVoigt Difference is that it is built in and doesn't require you to switch to a new tab and share your file with yet another company.
    – Gantendo
    Nov 24 at 4:28
  • @GabriellaChaos A better approach has already been answered.
    – Gantendo
    Nov 24 at 4:30

Send it as a Google Drive link, as recommended by Gmail.

Next to the "Send" button there is a little Google Drive button.


enter image description here

  • @BlindSpots That would not be an improvement. Like I said, this is the Gmail recommended workaround, and I've tested it.
    – Gantendo
    Nov 24 at 4:25
  • @BlindSpots Using a 3rd-party hosting solution is not the same as using GDrive which is built in. People who post answers don't have to acknowledge other answers, similar or not. You are not making much sense. Imagine if every answer on this site had to acknowledge the existence of somewhat similar answers.... That would be a giant waste of time and effort.
    – Gantendo
    Nov 24 at 18:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.