How do you verify an RSA SHA1 signature in Python?

后端 未结 8 1476
面向向阳花
面向向阳花 2020-11-29 00:35

I\'ve got a string, a signature, and a public key, and I want to verify the signature on the string. The key looks like this:

-----BEGIN PUBLIC KEY-----
MIGf         


        
8条回答
  •  南笙
    南笙 (楼主)
    2020-11-29 01:04

    Maybe this isn't the answer you're looking for, but if all you need is to turn the key into bits, it looks like it's Base64 encoded. Look at the codecs module (I think) in the standard Python library.

提交回复
热议问题