http://stackoverflow.com/questions/257462/c-sharp-to-php-base64-encode-decode 網址 Enefshsideshside line it. And URL Decode it on the php side prior to base64 decoding it. C# side <code>byte[] encbuff = System.Text.Encoding.UTF8.GetBytes("the string"); string enc = Convert.ToBase64String(encbuff); string urlenc = Server.UrlEncode(enc); </code> 登入後複製 and php side: <code>$data = $_REQUEST['in']; $decdata = urldecode($data); $raw = base64_decode($decdata); </code> 登入後複製 |
以上就介紹了C# to PHP base64 encode/decode,包含了方面的內容,希望對PHP教程有興趣的朋友有幫助。
🎜