PHP如何将二进制数据编码为base 64 [英] PHP how to encode binary data to base 64

查看:488
本文介绍了PHP如何将二进制数据编码为base 64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PHP openssl_sign使用教程此处创建数字签名一个>.如何将$ signature(包含二进制数据)转换为Base64.

I am using PHP openssl_sign to create a digital signature using the tutorial here. How can i convert $signature (which contains binary data) to Base64.

推荐答案

您可以使用 base64_encode .

这篇关于PHP如何将二进制数据编码为base 64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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