views:

217

answers:

2

how to get the actual public key i.e its binary form i.e without radix 64 conversion .i need to extract the public key from radix64 encoding .the pgp server gives me the key in radix 64 format now i have to extract the public key from it.

+2  A: 
import base64

decoded_bytes = base64.b64decode(ascii_chars)
Vinay Sajip
A: 

base64_encoded_data.decode('base64')

Ants Aasma