在Google文档上查看时解密受保护的文件 [英] Decrypt protected file when viewed on Google docs

查看:600
本文介绍了在Google文档上查看时解密受保护的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将受保护的(加密的)文档上传到Google驱动器,并在联机查看之前解密此文档。
操作流程应为:


  • 通过桌面应用程序将加密文档上传到Google云端硬盘,或直接从Google驱动器门户

  • 将上传的文档保存为本地docx格式(Google Drive无法以任何方式将其转换为已加密的文件)

  • 尝试查看在线文档(打开选项),让谷歌驱动器连接到第三方Web服务,该服务将接收加密文档,解密并将解密后的文件返回到谷歌驱动器以便在线查看。

  • Google驱动器始终仅保留加密文件的副本。



是否可以描述该场景?




  • 上传一个加密文档到Google云端硬盘,无论是通过桌面应用,还是直接从Google云端硬盘门户网站
    购买



没问题。只要确保Google无法识别.docx文件类型并尝试将其转换。为了获得流畅的用户体验,您可能需要使用自己的应用进行上传,以便Drive上生成的文件与您的应用相关联,作为默认开启者。


  • 将上传的文档保存为本地docx格式(不管
    如何加密都无法将其转换)



没问题


  • 当试图在线查看文档时(打开选项),将
    谷歌驱动器连接到第三方web服务,它将收到
    的加密文件,解密它


    没问题


    • 并将解密后的文件返回到谷歌浏览器进行在线查看。

    • 它驱动器,即在驱动器上创建一个新的,解密的文件...




      • Google驱动器始终只保留加密文件的副本。



      ...但你说你不想要那个



      如果你正在寻找th e Drive UI查看未存储在Drive中的文件,无法完成。如果我了解您的使用案例,我建议您可能希望查看可以将文件传回驱动器的方式,以便用户不会看到它。您可以通过在服务帐户下创建未加密的文件来完成此操作,然后将该文件共享回原始用户。


      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:

      • Upload an encrypted document to Google Drive either via the desktop app, or directly from the Google drive portal
      • Keep the uploaded document in native docx format (Google drive cannot convert it anyhow as it is encrypted)
      • 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.
      • Google drive always keeps a copy of the encrypted file only.

      Is the scenario described possible?

      解决方案

      It's not doable in the way you describe.

      • Upload an encrypted document to Google Drive either via the desktop app, or directly from the Google drive portal

      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.

      • Keep the uploaded document in native docx format (Google drive cannot convert it anyhow as it is encrypted)

      No problem

      • 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

      No problem

      • and return the decrypted file to google drive for online view.

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

      • Google drive always keeps a copy of the encrypted file only.

      ... 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.

      这篇关于在Google文档上查看时解密受保护的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆