摘要:
public static class RsaKeysFormatExtensions { /// <summary> /// XML公钥转成Pem公钥 /// </summary> /// <param name="xmlPublicKey"></param> /// <returns></ret 阅读全文
摘要:
public static void Generator(out string PrivarteKey, out string PublicKey, int KeySize = 1024) { RSACryptoServiceProvider rea = new RSACryptoServicePr 阅读全文
摘要:
使用类库:“BouncyCastle.NetCore”(.Net FrameWork使用“BouncyCastle”) /// <summary> /// 生成PEM格式的公钥和密钥 /// </summary> /// <param name="strength">长度</param> /// < 阅读全文
摘要:
/// <summary> /// LDAP工具类 /// </summary> public static class LDAPUtil { public static string Domain = "SHTAI";//域名称 public static string Host = "ip";/ 阅读全文
摘要:
/// <summary> /// DataTable帮助类 /// </summary> public class DataTableHelper { /// <summary> /// dataTable赋值给另一个DataTable /// 注意rows是否对应,否则就会修改成错误数据 /// 阅读全文
摘要:
public class RSAHelper { public static void Generator(out string PrivarteKey, out string PublicKey, int KeySize = 1024) { RSACryptoServiceProvider rea 阅读全文
摘要:
public class MSqlHelper: IDisposable { private string ConnectionString = ""; /// <summary> /// 批量操作每批次记录数 /// </summary> public static int BatchSize = 阅读全文
摘要:
public class CacheHelper { public static IMemoryCache _memoryCache = new MemoryCache(new MemoryCacheOptions()); /// <summary> /// 缓存绝对过期时间 /// </summa 阅读全文
摘要:
public class DirCache { private SortedDictionary<string, object> dic = new SortedDictionary<string, object>(); private static volatile DirCache instan 阅读全文