How to decrypt signature with public key python rsa

broken image

Prvkey = '''-BEGIN RSA PRIVATE KEY-įrom Crypto.Cipher import PKCS1_v1_5 as Cipher_PKCS1_v1_5

broken image

Here's my code, encrypt end decrypt, the key was from someone's blog.(if U occured with 'ValueError: RSA key format is not supported', check the key format, it should be warpped with some thing like '-BEGIN XXXX KEY-') pubkey = '''-BEGIN PUBLIC KEY.

broken image