我想知道是否可以使用 PHP 解密 JavaScript 加密文本(使用 JavaScript 的 btoa 函数加密)。
看一下base64_decode() http://php.net/manual/en/function.base64-decode.php.
JavaScriptbtoa()
只是使用编码一个字符串Base64 https://en.wikipedia.org/wiki/Base64。 PHP 函数是base64_encode() http://php.net/manual/en/function.base64-encode.php and base64_decode() http://php.net/manual/en/function.base64-decode.php.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)