使用PHP的JavaScript atob操作 [英] JavaScript atob operation using PHP

查看:97
本文介绍了使用PHP的JavaScript atob操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以使用PHP解密JavaScript加密的文本(使用JavaScript的btoa函数加密的文本).

解决方案

看看 Base64 对字符串进行编码.相应的PHP函数为 base64_encode() base64_decode() ..>

I would like to know if it is possible to decrypt the JavaScript encrypted text (which is encrypted using JavaScript's btoa function), using PHP.

解决方案

Have a look at base64_decode().

JavaScripts btoa() just encodes a string using Base64. The PHP functions for that are base64_encode() and base64_decode().

这篇关于使用PHP的JavaScript atob操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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