简体   繁体   English

PhpSpreadsheet-我可以在PHP中的xls文件中添加数字签名吗?

[英]PhpSpreadsheet - Can I add digital signature to xls file in PHP?

I use https://github.com/PHPOffice/PhpSpreadsheet I need to add digital signature to xls document to verify authenticity of document. 我使用https://github.com/PHPOffice/PhpSpreadsheet,我需要向xls文档添加数字签名以验证文档的真实性。 Is it possible with this or maybe other PHP library? 这个或其他PHP库是否可能? Can anyone point me a direction how to do this? 谁能指出我该怎么做的方向?

Digital signatures are not supported in PhpSpreadsheet. PhpSpreadsheet不支持数字签名。

But in case you want macros signed with a certificate, then those are supported in PhpSpreadsheet Xlsx writer. 但是,如果要使用证书签名的宏,则PhpSpreadsheet Xlsx writer支持这些宏。 But that feature is not documented. 但是没有记录该功能。 To understand how to use, refer to the commit that introduced it . 要了解如何使用,请参考引入它提交 It should be something like: 应该是这样的:

$spreadsheet->setMacrosCertificate($certificate); $数据表单> setMacrosCertificate($证书);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM