openpyxl.utils.protection模块

openpyxl.utils.protection.hash_password(plaintext_password='')[源代码]

从给定字符串创建密码哈希,仅用于保护工作表。这对于加密工作簿不起作用。

此方法基于OpenOffice的Daniel Rentz提供的算法和Xavier Noguer<xnoguer@rezebra.com>提供的Pear软件包电子表格Excel编写器。另请参见http://blogs.msdn.com/b/ericwhite/archive/2008/02/23/the-legacy-hashing-algorithm-in-open-xml.aspx