![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
MyeDy
这个作者很懒,什么都没留下…
展开
-
Python RSA, ECDSA384签名/验证
工作中用到了RSA和ECDSA的签名,整理一下脚本代码,分享给有需要的人。RSA支持多种bit位数, ECDSA暂时只支持ECDSA384。RSA的脚本用的python2,ECDSA用python3写的。RSA#!/usr/bin/pythonfrom cryptography.exceptions import InvalidSignaturefrom cryptograph...原创 2017-11-11 21:05:52 · 4425 阅读 · 0 评论 -
x509解析
文章目录X509X509X509的ASN.1定义:[Certificate ::= SEQUENCE { tbsCertificate TBSCertificate, signatureAlgorithm AlgorithmIdentifier, signature BIT STRING}首先,一张x509证书最顶层包含三个东西。TBSCertificate是X509里最重要...原创 2019-05-09 17:39:56 · 5993 阅读 · 2 评论