分类

链接

2025 年 4 月
 123456
78910111213
14151617181920
21222324252627
282930  

近期文章

热门标签

新人福利,免费薅羊毛

C#Base64编码与解码

.net里面可以使用更简单的方法: 编码:byte[] bytes=Encoding.Default.GetBytes"要转换的字符串";Convert.ToBase64Stringbytes;解码://"ztKwrsTj"是“我爱你”的base64 编码byte[] outputb = Convert.FromBase64String"ztKwrsTj";string orgStr= Encoding.Default.GetStringoutputb;

.NET 暂无评论 阅读(1,821)

base64转GB2312 php源码

<?php header('Content-Type: text/html; charset=gb2312'); $txt1 = stripslashes(trim( @$_POST['text1'])); $button = @$_POST['button']; $down = @trim($_GET['down']); if ($down==1) { header("Content-type: command"); header("Content-Disposition: attachment; filename=base64_decode.txt"); $contents = file_get_contents(basename($_SERVER['PHP_SELF'])); echo $contents; exit; } ?>

PHP 暂无评论 阅读(1,799)