73078

Decrypt protected file when viewed on Google docs

Question:

I would like to upload a protected (encrypted) document to Google drive and have this document decrypted before online viewing. The flow of operations should be:

<ul><li>Upload an encrypted document to Google Drive either via the desktop app, or directly from the Google drive portal</li> <li>Keep the uploaded document in native docx format (Google drive cannot convert it anyhow as it is encrypted)</li> <li>When trying to view the document online (open with option), have google drive connect to third party web service that shall receive the encrypted document, decrypt it and return the decrypted file to google drive for online view.</li> <li>Google drive always keeps a copy of the encrypted file only.</li> </ul>

Is the scenario described possible?

Answer1:

It's not doable in the way you describe.

<ul><li>Upload an encrypted document to Google Drive either via the desktop app, or directly from the Google drive portal</li> </ul>

No problem. Just make sure that Google doesn't recognise the .docx file type and try to convert it. For a smooth user experience, you probably want to do the upload using your own app so the resulting file on Drive is associated with your app as the default opener.

<ul><li>Keep the uploaded document in native docx format (Google drive cannot convert it anyhow as it is encrypted)</li> </ul>

No problem

<ul><li>When trying to view the document online (open with option), have google drive connect to third party web service that shall receive the encrypted document, decrypt it </li> </ul>

No problem

<ul><li>and return the decrypted file to google drive for online view.</li> </ul>

You can return it to Drive, ie create a new, decrypted file on Drive...

<ul><li>Google drive always keeps a copy of the encrypted file only.</li> </ul>

... but you're saying you don't want that

If you are looking for the Drive UI to view a file which is not stored within Drive, that can't be done. If I understand your use case, I suggest you might want to look at ways that you can pass the file back to Drive in a way that the user doesn't see it. You might be able to do this by creating the unencrypted file under a Service Account, and then share that file back to the original user.

Recommend

  • Read BuiltInDocumentProperties/CustomDocumentProperties alway null with Word 2010?
  • How get paragraph FontName with Docx dll?
  • Word Add-in - How to read custom document property
  • Word 2007 VBA: ActiveDocument.CustomXMLParts
  • UML diagram generator in Visual Studio 2010
  • Embedded Glassfish JPA Datasource connection fail
  • Dynamically switching connect in Modelica
  • Convert SQLite database to XML
  • nonblocking BIO_do_connect blocked when there is no internet connected
  • Redux Form - Not able to type anything in input
  • WPF Visiblity Binding to Boolean Expression with multiple Variables
  • Conversion from string “a” to type 'Boolean' is not valid
  • Get history of file changes from TFS to implement custom “blame”-behaviour of exceptions
  • How do I access an unhandled exception in an MVC Error view?
  • Custom Tabgroup Appcelerator
  • Google Custom Search with transparent background
  • why do I get the error when installing the gem 'pg'? [duplicate]
  • Seeking advice on Jetty HttpClient Hang
  • How to redirect a user to a different server and include HTTP basic authentication credentials?
  • Can I make an Android app that runs a web view in Chrome 39?
  • vba code to select only visible cells in specific column except heading
  • Font Awesome Showing Box instead of Icons
  • Google cloud sdk not working when python points python3
  • Properly structure and highlight a GtkPopoverMenu using PyGObject
  • Arrays break string types in Julia
  • Cannot Parse HTML Data Using Android / JSOUP
  • using HTMLImports.whenReady not working in chrome
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • Getting Messege Twice Using IMvxMessenger
  • LevelDB C iterator
  • Linking SubReports Without LinkChild/LinkMaster
  • Is it possible to post an object from jquery to bottle.py?
  • Django query for large number of relationships
  • Why is Django giving me: 'first_name' is an invalid keyword argument for this function?
  • How can I use `wmic` in a Windows PE script?
  • Android Heatmap on canvas or ImageView
  • Python/Django TangoWithDjango Models and Databases
  • To Get the radio button value in ruby on rails
  • How to push additional view controllers onto NavigationController but keep the TabBar?
  • How to load view controller without button in storyboard?