10 2021 档案

摘要:public class BlowfishCBC : BlowfishECB { // here we hold the CBC IV long m_lCBCIV; public BlowfishCBC() { } /** * get the current CBC IV (for cipher r 阅读全文
posted @ 2021-10-27 11:13 龙丶谈笑风声 阅读(101) 评论(0) 推荐(0) 编辑
摘要:public class BlowfishECB { /** maximum possible key length */ public readonly static int MAXKEYLENGTH = 56; /** block size of this cipher (in bytes) * 阅读全文
posted @ 2021-10-27 11:13 龙丶谈笑风声 阅读(54) 评论(0) 推荐(0) 编辑
摘要:public class Blowfish { private BlowfishCBC m_bfish; private static Random m_rndGen = new Random(); private byte[] SHA1keys(string key) { byte[] keyAr 阅读全文
posted @ 2021-10-27 11:12 龙丶谈笑风声 阅读(227) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// XML操作类 /// </summary> public class XmlHelper { #region 变量 protected string strXmlFile; protected XmlDocument objXmlDoc = new XmlDocu 阅读全文
posted @ 2021-10-22 10:30 龙丶谈笑风声 阅读(48) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 这个类提供了一些实用的方法来转换XML和对象。 /// </summary> public sealed class XmlConvertor { private XmlConvertor() { } /// <summary> /// 将XML字符串转换到指定的 阅读全文
posted @ 2021-10-22 10:29 龙丶谈笑风声 阅读(279) 评论(0) 推荐(0) 编辑
摘要:public class WordCombineUtil { /// <summary> /// com对象常用的参数 /// </summary> public static object Miss_Object = System.Reflection.Missing.Value; /// <su 阅读全文
posted @ 2021-10-22 10:28 龙丶谈笑风声 阅读(78) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 常用的文件操作辅助类FileUtil /// </summary> public class FileUtil { #region Stream、byte[] 和 文件之间的转换 /// <summary> /// 将流读取到缓冲区中 /// </summary> 阅读全文
posted @ 2021-10-22 09:34 龙丶谈笑风声 阅读(79) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 利用VBA对象,导出DataView到一个Excel文档中的Excel辅助类 /// </summary> public class Export2Excel { #region InstanceFields //实例字段 public delegate void 阅读全文
posted @ 2021-10-22 09:33 龙丶谈笑风声 阅读(135) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// Excel操作辅助类(无需VBA引用) /// </summary> public class ExcelHelper { /// <summary> /// Excel 版本 /// </summary> public enum ExcelType { Exce 阅读全文
posted @ 2021-10-22 09:32 龙丶谈笑风声 阅读(218) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 常用的目录操作辅助类 /// </summary> public class DirectoryUtil { #region 目录可写与空间计算 /// <summary> ///检查目录是否可写,如果可以,返回True,否则False /// </summary 阅读全文
posted @ 2021-10-22 09:31 龙丶谈笑风声 阅读(198) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// CSV文件和DataTable对象转换辅助类 /// </summary> public class CSVHelper { /// <summary> /// CSV转换成DataTable(OleDb数据库访问方式) /// </summary> /// <p 阅读全文
posted @ 2021-10-22 09:29 龙丶谈笑风声 阅读(137) 评论(0) 推荐(0) 编辑
摘要://QQ的EncryptUtil public class QQEncryptUtil { public static string EncodePasswordWithVerifyCode(string password, string verifyCode) { return MD5(MD5_3 阅读全文
posted @ 2021-10-22 09:28 龙丶谈笑风声 阅读(374) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 用于获取或设置Web.config/*.exe.config中节点数据的辅助类 /// </summary> public sealed class AppConfig { private string filePath; /// <summary> /// 从当 阅读全文
posted @ 2021-10-22 09:28 龙丶谈笑风声 阅读(92) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// MD5各种长度加密字符、验证MD5等操作辅助类 /// </summary> public class MD5Util { public MD5Util() { } /// <summary> /// 获得32位的MD5加密 /// </summary> /// 阅读全文
posted @ 2021-10-22 09:27 龙丶谈笑风声 阅读(360) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// DES对称加解密、AES RijndaelManaged加解密、Base64加密解密、MD5加密等操作辅助类 /// </summary> public sealed class EncodeHelper { #region DES对称加密解密 public co 阅读全文
posted @ 2021-10-22 09:26 龙丶谈笑风声 阅读(334) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 基于Base64的加密编码, /// 可以设置不同的密码表来获取不同的编码合解码 /// </summary> public class Base64Util { public Base64Util() { this.InitDict(); } protected 阅读全文
posted @ 2021-10-22 09:24 龙丶谈笑风声 阅读(1189) 评论(0) 推荐(0) 编辑
摘要:public abstract partial class RSAHelper { #region 加密 /// <summary> /// RSA加密 /// </summary> /// <param name="publicKeyJava"></param> /// <param name=" 阅读全文
posted @ 2021-10-22 08:56 龙丶谈笑风声 阅读(1187) 评论(0) 推荐(0) 编辑
摘要:public static class RSAHelper { /// <summary> /// RSA的容器 可以解密的源字符串长度为 DWKEYSIZE/8-11 /// </summary> public const int DWKEYSIZE = 1024; /// <summary> / 阅读全文
posted @ 2021-10-22 08:54 龙丶谈笑风声 阅读(889) 评论(0) 推荐(1) 编辑
摘要:public static class RSAExtensions { /// <summary> /// 把java的私钥转换成.net的xml格式 /// </summary> /// <param name="rsa"></param> /// <param name="privateJava 阅读全文
posted @ 2021-10-22 08:51 龙丶谈笑风声 阅读(179) 评论(0) 推荐(0) 编辑
摘要:public static class RsaKeysFormatExtensions { /// <summary> /// XML公钥转成Pem公钥 /// </summary> /// <param name="xmlPublicKey"></param> /// <returns></ret 阅读全文
posted @ 2021-10-21 17:36 龙丶谈笑风声 阅读(1831) 评论(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 龙丶谈笑风声 阅读(889) 评论(0) 推荐(0) 编辑
摘要:使用类库:“BouncyCastle.NetCore”(.Net FrameWork使用“BouncyCastle”) /// <summary> /// 生成PEM格式的公钥和密钥 /// </summary> /// <param name="strength">长度</param> /// < 阅读全文
posted @ 2021-10-21 17:32 龙丶谈笑风声 阅读(1233) 评论(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 龙丶谈笑风声 阅读(305) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// DataTable帮助类 /// </summary> public class DataTableHelper { /// <summary> /// dataTable赋值给另一个DataTable /// 注意rows是否对应,否则就会修改成错误数据 /// 阅读全文
posted @ 2021-10-21 13:46 龙丶谈笑风声 阅读(466) 评论(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 龙丶谈笑风声 阅读(583) 评论(0) 推荐(0) 编辑
摘要:public class MSqlHelper: IDisposable { private string ConnectionString = ""; /// <summary> /// 批量操作每批次记录数 /// </summary> public static int BatchSize = 阅读全文
posted @ 2021-10-21 13:43 龙丶谈笑风声 阅读(1407) 评论(0) 推荐(0) 编辑
摘要:public class CacheHelper { public static IMemoryCache _memoryCache = new MemoryCache(new MemoryCacheOptions()); /// <summary> /// 缓存绝对过期时间 /// </summa 阅读全文
posted @ 2021-10-21 13:42 龙丶谈笑风声 阅读(338) 评论(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 龙丶谈笑风声 阅读(66) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 全局鼠标钩子。这可以用来在全球范围内捕获鼠标输入。 /// </summary> public static class MouseHook { //钩子的句柄(用于安装/卸载)。 private static IntPtr hHook = IntPtr.Zero 阅读全文
posted @ 2021-10-20 17:59 龙丶谈笑风声 阅读(686) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// MP3文件播放操作辅助类 /// </summary> public class MP3Helper { [DllImport("winmm.dll")] private static extern long mciSendString(string strCom 阅读全文
posted @ 2021-10-20 17:59 龙丶谈笑风声 阅读(419) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 模拟鼠标点击 /// </summary> [HostProtection(SecurityAction.LinkDemand, Resources = HostProtectionResource.ExternalProcessMgmt)] public cla 阅读全文
posted @ 2021-10-20 17:58 龙丶谈笑风声 阅读(2948) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 全局键盘钩子。这可以用来在全球范围内捕捉键盘输入。 /// </summary> public static class KeyboardHook { // 钩子的句柄(用于安装/卸载). private static IntPtr hHook = IntPtr. 阅读全文
posted @ 2021-10-20 17:58 龙丶谈笑风声 阅读(904) 评论(2) 推荐(0) 编辑
摘要:using SendKeysProxy = System.Windows.Forms.SendKeys; /// <summary> /// 提供访问键盘当前状态的属性, /// 如什么键当前按下,提供了一种方法,以发送击键到活动窗口。 /// </summary> [HostProtection( 阅读全文
posted @ 2021-10-20 17:57 龙丶谈笑风声 阅读(148) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 提供用户硬件唯一信息的辅助类 /// </summary> public class FingerprintHelper { public static string Value() { return pack(cpuId() + biosId() + diskI 阅读全文
posted @ 2021-10-20 17:55 龙丶谈笑风声 阅读(144) 评论(0) 推荐(0) 编辑
摘要:using System.Runtime.InteropServices;using System.Management;using System.Collections.Generic;using Microsoft.Win32;using System;using System.Text; // 阅读全文
posted @ 2021-10-20 17:55 龙丶谈笑风声 阅读(944) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 电脑信息 /// </summary> public class Computer { #region CpuUsage类 /// <summary> /// Defines an abstract base class for implementations o 阅读全文
posted @ 2021-10-20 17:53 龙丶谈笑风声 阅读(140) 评论(0) 推荐(0) 编辑
摘要:using ClipboardProxy = System.Windows.Forms.Clipboard; /// <summary>提供用于操作剪贴板的方法.</summary> [EditorBrowsable(EditorBrowsableState.Never)] [Browsable(f 阅读全文
posted @ 2021-10-20 17:52 龙丶谈笑风声 阅读(663) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 摄像头操作辅助类,包括开启、关闭、抓图、设置等功能 /// </summary> public class Camera { private IntPtr lwndC; private IntPtr mControlPtr; private int mWidth; 阅读全文
posted @ 2021-10-20 17:51 龙丶谈笑风声 阅读(309) 评论(0) 推荐(0) 编辑
摘要:声音播放辅助类 阅读全文
posted @ 2021-10-20 17:50 龙丶谈笑风声 阅读(53) 评论(0) 推荐(0) 编辑
摘要:https://www.myssl.cn/tools/merge-pem-cert.html 阅读全文
posted @ 2021-10-20 16:13 龙丶谈笑风声 阅读(10) 评论(0) 推荐(0) 编辑
摘要:https://superdry.apphb.com/tools/online-rsa-key-converter 阅读全文
posted @ 2021-10-20 16:12 龙丶谈笑风声 阅读(24) 评论(0) 推荐(0) 编辑
摘要:移除:DataTable.Columns.Remove("colName"); 取列:DataTable dt = DataTable.DefaultView.ToTable(false, new string[] { "colName1", "colName2" }); 取行:DataTable 阅读全文
posted @ 2021-10-20 16:10 龙丶谈笑风声 阅读(228) 评论(0) 推荐(0) 编辑
摘要:C#RSA数字签名解释 阅读全文
posted @ 2021-10-20 15:57 龙丶谈笑风声 阅读(877) 评论(0) 推荐(0) 编辑
摘要:C#,共享文件夹, 阅读全文
posted @ 2021-10-12 16:44 龙丶谈笑风声 阅读(610) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示