2020年7月3日

C#动态生成json

摘要: public class AddModel { //AppID(接口提供方提供) public string appid { get; set; } //数据Base64加密 public string data { get; set; } //随机数 public string noise { g 阅读全文

posted @ 2020-07-03 13:39 AbelAngelo 阅读(626) 评论(0) 推荐(0)

C#使用UUID生成ID

摘要: tring id = System.Guid.NewGuid().ToString(); 一句话即可,但此时id中有“-”符号存在,使用下面语句可变为纯字母+数字。 string id = System.Guid.NewGuid().ToString("N"); 阅读全文

posted @ 2020-07-03 11:17 AbelAngelo 阅读(336) 评论(0) 推荐(0)

ini文件读取

摘要: public class IniConfigHelp { [DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, string key, string val, stri 阅读全文

posted @ 2020-07-03 10:50 AbelAngelo 阅读(220) 评论(0) 推荐(0)

Base64加密和解密方式

摘要: public class Base64 { ///编码 code_type 编码方式(UTF-8),code 编码内容 public static string EncodeBase64(string code_type, string code) { string encode = ""; byt 阅读全文

posted @ 2020-07-03 09:44 AbelAngelo 阅读(197) 评论(0) 推荐(0)

导航