计算SharePoint Online中的文档 [英] Calculate has of document in SharePoint Online

查看:74
本文介绍了计算SharePoint Online中的文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!

我需要在SharePoint Online中计算文档的哈希值(使用sha256).

我怎样才能做到这一点?我只能使用JavaScript吗?

我需要使用加载项吗?

谢谢!

Hello!

I need to calculate hash of document (using sha256) in SharePoint Online.

How can I do that? Can I use only JavaScript?

Do I need to do it using Add-In?

Thank you!

推荐答案

您好,Analytick,

简短的答案:是的,您将需要一个应用程序或使用PowerShell,因为OOTB不可用.

长答案:
还不清楚您是否需要为SharePoint Online中已经存在的文档计算sha256,还是要在上传过程中计算sha256,然后将文档的sha256值捕获到SharePoint列中.如果你只是 希望保留每个文档具有sha256值的列表(SharePoint外部).

该解决方案需要满足以下要求:
-有多种添加文档的方法(例如,通过浏览器上传,Office Online,资源管理器视图,REST API,从其他库移出...)
如果每个文档都需要一个sha256值,则需要考虑用户上载文档的各种可能方式
-SharePoint在上传时会将元数据插入某些文件格式(例如docx,xl​​sx,msg,tiff).这将更改文件的内容,并且生成的sha256将与原始项目中的sha256不同.
-有JavaScript实现.请注意,需要将文档下载到客户端以计算sha256.对于PowerShell,下载也是必需的.
-文档版本

保罗| SLIM应用


Hi Analytick,

Short answer: yes you will need an app or use PowerShell because this is not available OOTB.

Long answer:
It is not clear if you need to calculate the sha256 for documents that are already present in SharePoint Online or whether you want to calculate the sha256 during upload and then capture the document's sha256 value into a SharePoint column. Of if you simply want to keep a list (outside SharePoint) with the sha256 value for each document.

The solution needs to cater for the following:
- there are several ways to add documents (e.g. through browser upload, Office Online, Explorer view, REST API, move from other libraries, ...)
if each document needs a sha256 value then you need to cater for each possible way for users to upload documents
- SharePoint inserts metadata into certain file formats (e.g. docx, xlsx, msg, tiff) upon uploading. This changes the content of the file and the resulting sha256 will be different from the sha256 from the original item.
- there are JavaScript implementations. Please be aware that the documents needs to be downloaded to the client for the calculation of the sha256. The download is also necessary for PowerShell. 
- document versions

Paul | SLIM Applications



这篇关于计算SharePoint Online中的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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