用于在Mozilla处理XPI签名的库。
项目描述
sign-xpi-lib
用于在Mozilla处理XPI签名的库。
免费软件:MIT许可证
概述
有关Firefox中XPI签名工作方式的信息可以在Mozilla维基百科中找到。
一个生成正确格式的PKCS7签名的工具是autograph,更多详情请参阅。
此库由sign-xpi lambda使用,但也可用于其他客户端。
使用方法
from sign_xpi_lib import XPIFile
x = XPIFile('hypothetical-addon-unsigned.xpi')
# this is the mozilla.sf file computed by hashing mozilla.rsa
signed_manifest = x.signed_manifest
print(signed_manifest)
# This probably talks to Autograph or an HSM or whatever
signature = 'generate-a-signature somehow'
x.make_signed('hypothetical-addon-signed.xpi', 'mozilla.rsa',
signed_manifest, signature)
有关更多详细信息,请参阅测试。
致谢
此软件包是用Cookiecutter和audreyr/cookiecutter-pypackage项目模板创建的。
历史
0.1.0 (2017-07-07)
在PyPI上的首次发布。
项目详情
关闭
sign-xpi-lib-0.1.0.tar.gz的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 22ec00d91327085762089db0a6aeec941cf54428b7f4f996a068911807416d98 |
|
| MD5 | 39bb94705ec6f50633a7be8ba7dc75ef |
|
| BLAKE2b-256 | 2a9c7958274a43073f2fa4589cce478194ed456c07a625b43a5afc2d4bbc341e |
关闭
sign_xpi_lib-0.1.0-py2.py3-none-any.whl的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 00e16b22385e60e1b7253e090670254f455fe5012b986c964ff4ed5e4b57b640 |
|
| MD5 | 2ec92114e5042b36078b25b6c71706ba |
|
| BLAKE2b-256 | 0310dc8507bab0debbd199c8739b83e1d26821bef879d61b2acd8f6b8ff5e647 |