runxinzhi.com
首页
百度搜索
关于String 和 Base64 之间的互转 比较简单!
public
static
String EncryptBase64Code(String text)
{
Byte[] bufin
=
System.Text.ASCIIEncoding.UTF8.GetBytes(text);
String result
=
Convert.ToBase64String(bufin,
0
, bufin.Length);
return
result;
}
public
static
String DecryptBase64Code(String text)
{
try
{
Byte[] bufout
=
Convert.FromBase64String(text);
String result
=
System.Text.ASCIIEncoding.UTF8.GetString(bufout);
return
result;
}
catch
{
return
text;
}
}
相关阅读:
Android Zygote介绍
Android binder介绍(下)
Android binder介绍(上)
Android init介绍(下)
Android init介绍(上)
Android 网络服务介绍
Linux代理服务器使用
Linux ALSA介绍
ZigBee MAC层(下)
ZigBee MAC层(上)
原文地址:https://www.cnblogs.com/SUNBOY/p/526037.html
最新文章
SVN服务器搭建和使用(三)
pt-kill MySQL会话杀灭神器
MySQL索引对NULL值的处理
pt-osc 变更时遇到 “MySQL error 1300” 报错问题解决
MySQL 过滤复制+复制映射 配置方法
MySQL变更之:Online DDL 和 PT-OSC 该选谁?
InnoDB Monitors | SHOW ENGINE INNODB STATUS
zabbix 接口 | zabbix api 实践
Linux上安装Apache服务器
nginx 配置文件详解
热门文章
正则表达式
精确率(precision)和召回率(recall)
使用Adobe Acrobat Pro DC 删除pdf文件中的空白页
解决word中输入一行内容未到头就自动换行的问题
Python中的绘图(论文中保存成PDF不失真)
用word写大论文之表或图的交叉引用:不需要一个一个的修改图或表的编号
论文中对绘图的某个细节进行局部放大(大图套小图)
win10使用WinSCP远程另一台Win10
Stream.distinct() 列表去重和列表中不同元素个数统计注意事项
Android audio介绍
Copyright © 2020-2023
润新知