如何从radix 64编码恢复二进制流(原始格式) [英] how to recover the binary stream(original form) from radix 64 encoding

查看:188
本文介绍了如何从radix 64编码恢复二进制流(原始格式)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取实际的公钥,即其二进制形式,即没有radix 64转换.i需要从radix64编码中提取公钥。pgp服务器给我的基数64格式的密钥,现在我必须提取公钥

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.

推荐答案

import base64

decoded_bytes = base64.b64decode(ascii_chars)

这篇关于如何从radix 64编码恢复二进制流(原始格式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆