Trying to implement the signature verification of inapp billing on my server (Django/Python).
I found this great topic but I'm having issues with this line:
rsa = RSA.load_pub_key_bio(bio)
If I do it exactly as it is coded there I get a "RSAError: no start line" [and this makes sense since python didnt really like how pem was defined]
I decided to put my key into a .pem file and load it with
rsa = RSA.load_pub_key("public.pem")
However, I get a "RSAError: bad base64 decode" . Any ideas?