摘要: public static class RsaKeysFormatExtensions { /// <summary> /// XML公钥转成Pem公钥 /// </summary> /// <param name="xmlPublicKey"></param> /// <returns></ret 阅读全文
posted @ 2021-10-21 17:36 龙丶谈笑风声 阅读(1676) 评论(0) 推荐(0) 编辑
摘要: public static void Generator(out string PrivarteKey, out string PublicKey, int KeySize = 1024) { RSACryptoServiceProvider rea = new RSACryptoServicePr 阅读全文
posted @ 2021-10-21 17:35 龙丶谈笑风声 阅读(826) 评论(0) 推荐(0) 编辑
摘要: 使用类库:“BouncyCastle.NetCore”(.Net FrameWork使用“BouncyCastle”) /// <summary> /// 生成PEM格式的公钥和密钥 /// </summary> /// <param name="strength">长度</param> /// < 阅读全文
posted @ 2021-10-21 17:32 龙丶谈笑风声 阅读(1192) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// LDAP工具类 /// </summary> public static class LDAPUtil { public static string Domain = "SHTAI";//域名称 public static string Host = "ip";/ 阅读全文
posted @ 2021-10-21 13:47 龙丶谈笑风声 阅读(286) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// DataTable帮助类 /// </summary> public class DataTableHelper { /// <summary> /// dataTable赋值给另一个DataTable /// 注意rows是否对应,否则就会修改成错误数据 /// 阅读全文
posted @ 2021-10-21 13:46 龙丶谈笑风声 阅读(416) 评论(0) 推荐(0) 编辑
摘要: public class RSAHelper { public static void Generator(out string PrivarteKey, out string PublicKey, int KeySize = 1024) { RSACryptoServiceProvider rea 阅读全文
posted @ 2021-10-21 13:45 龙丶谈笑风声 阅读(522) 评论(0) 推荐(0) 编辑
摘要: public class MSqlHelper: IDisposable { private string ConnectionString = ""; /// <summary> /// 批量操作每批次记录数 /// </summary> public static int BatchSize = 阅读全文
posted @ 2021-10-21 13:43 龙丶谈笑风声 阅读(1236) 评论(0) 推荐(0) 编辑
摘要: public class CacheHelper { public static IMemoryCache _memoryCache = new MemoryCache(new MemoryCacheOptions()); /// <summary> /// 缓存绝对过期时间 /// </summa 阅读全文
posted @ 2021-10-21 13:42 龙丶谈笑风声 阅读(330) 评论(0) 推荐(0) 编辑
摘要: public class DirCache { private SortedDictionary<string, object> dic = new SortedDictionary<string, object>(); private static volatile DirCache instan 阅读全文
posted @ 2021-10-21 13:41 龙丶谈笑风声 阅读(61) 评论(0) 推荐(0) 编辑