2009年1月5日

Test CA(2)

摘要: private string CreateRandomPWD(int length) { byte[] random = new byte[length / 2]; System.Security.Cryptography.RNGCryptoServiceProvider rng = new System.Security.Crypt... 阅读全文

posted @ 2009-01-05 15:54 ChinaLeo 阅读(307) 评论(0) 推荐(0)

Test CA(1)

摘要: /// /// Create CA /// /// /// private void button5_Click(object sender, EventArgs e) //CreateCA { try { ... 阅读全文

posted @ 2009-01-05 15:52 ChinaLeo 阅读(409) 评论(0) 推荐(0)

Installer1

摘要: using System; using System.Collections; using System.ComponentModel; using System.Configuration.Install; namespace ePOUrgeMail_Service { /// /// Summary description for Installer1. /// [RunInsta... 阅读全文

posted @ 2009-01-05 15:22 ChinaLeo 阅读(139) 评论(0) 推荐(0)

PublicModule(2)

摘要: // 執行查詢語句 public DataSet ExecuteQuerySql(string strsql) { try { DataSet ds = new DataSet(); this.myConn = new SqlConnection( ePO_CONNECTSTRING ); this.myCommand= new SqlCommand( ... 阅读全文

posted @ 2009-01-05 15:22 ChinaLeo 阅读(208) 评论(0) 推荐(0)

PublicModule(1)

摘要: using System; using System.Data; using System.Data.SqlClient; namespace ePOUrgeMail_Service { /// /// Summary description for PublicModule. /// public class PublicModule { public static strin... 阅读全文

posted @ 2009-01-05 15:21 ChinaLeo 阅读(200) 评论(0) 推荐(0)

SendUrgeMail(3)

摘要: private string GetStartPointByCaseType( string CaseType ) { string strStartPoint = "/PurchaseOrder/PurchaseOrderList.aspx?status=wait"; switch( CaseType ) { case "Expense PO": case ... 阅读全文

posted @ 2009-01-05 15:20 ChinaLeo 阅读(125) 评论(0) 推荐(0)

SendUrgeMail(2)

摘要: // 對最後一筆數據發送Mail if( dvInitData_Collect.Count > 0 ) { string CaseListHTML = "單號 " + " 經辦人 " + " 逾期時間"; CaseListH... 阅读全文

posted @ 2009-01-05 15:18 ChinaLeo 阅读(101) 评论(0) 推荐(0)

SendUrgeMail(1)

摘要: using System; using System.Data; namespace ePOUrgeMail_Service { /// /// Summary description for SendUrgeMail. /// public class SendUrgeMail { Notification.NotificationWS notes = new Notifica... 阅读全文

posted @ 2009-01-05 15:17 ChinaLeo 阅读(112) 评论(0) 推荐(0)

Service1

摘要: using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.ServiceProcess; namespace ePOUrgeMail_Service { public class Service1 : ... 阅读全文

posted @ 2009-01-05 15:06 ChinaLeo 阅读(131) 评论(0) 推荐(0)

sign4

摘要: #region 加解密 /// /// 加密 /// /// need encrypt /// key /// string public static string Encrypt(string pToEncrypt, string sKey) { DESCryptoServiceProvider des = new DESCryptoServiceP... 阅读全文

posted @ 2009-01-05 14:54 ChinaLeo 阅读(141) 评论(0) 推荐(0)

sign3

摘要: /// /// authenticate user's certificate whether is published by Organization ca center /// /// certificate issue name /// certificate serial number /// private static bool Authenticate(... 阅读全文

posted @ 2009-01-05 14:54 ChinaLeo 阅读(222) 评论(0) 推荐(0)

sign1

摘要: using System; using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.Pkcs; using System.Security.Cryptography; using System.Text.RegularExpressions; using System.IO; n... 阅读全文

posted @ 2009-01-05 14:52 ChinaLeo 阅读(185) 评论(0) 推荐(0)

sign2

摘要: /// /// this method is for login action, display the personal certificates replace of capicom(string split by ^) /// /// string internal static string SignInNew() { try { X509Ce... 阅读全文

posted @ 2009-01-05 14:52 ChinaLeo 阅读(159) 评论(0) 推荐(0)

认证中心

摘要: 认证中心的功能 概括地说,认证中心的主要功能有:证书的颁发;证书的更新;证书的查询;证书的归档;证书的作废;以及密钥的备份与恢复等。 证书的颁发 认 证中心接收、验证用户(包括下级认证中心和最终用户)的数字证书的申请,将申请的内容进行备案,并根据申请的内容确定是否受理该数字证书申请。如果中心接受该数字证书申请,则进一步确定给用户颁发何种类型的证书。新证书用认证中心的私钥签名以后,发送到目录... 阅读全文

posted @ 2009-01-05 14:38 ChinaLeo 阅读(774) 评论(0) 推荐(0)

数字证书

摘要: 数字证书概念 数 字证书(Digital Certificate, Digital ID)又称为数字凭证,是INTERNET上使用电子手段证实用户身份和用户访问网络资源权限的一种安全防范手段。它由权威机构发行。在网上的电子交易 中,如双方出示了各自的数字证书,并用它来进行交易操作,那么双方都可不必为对方身份的真伪担心。 数字证书的格式遵循ITUT X.509国际标准。一个标准的X.509数字证书... 阅读全文

posted @ 2009-01-05 14:37 ChinaLeo 阅读(1253) 评论(0) 推荐(0)

数字签名

摘要: 数字签名概念 现 实生活中的书信或文件是根据亲笔签名或印章来证明其真实性的。签名的作用有两点,一是因为自己的签名难以否认,从而确认了文件已签署这一事实;二是因为签名不易仿冒,从而确定了文件是真的这一事实。在计算机网络中传送的报文又是如何盖章呢?这就是数字签名所要解决的问题。数字签名与书面文件签名有相同之 处,采用数字签名,也能确认以下两点: 信息是由签名者发送的。 信息自签... 阅读全文

posted @ 2009-01-05 14:34 ChinaLeo 阅读(1113) 评论(0) 推荐(0)

消息摘要

摘要: 消息摘要概念 消息摘要(Message Digest)又称为数字摘要(Digital Digest)。它是一个唯一对应一个消息或文本的固定长度的值,它由一个单向Hash加密函数对消息进行作用而产生。如果消息在途中改变了,则接收者通 过对收到消息的新产生的摘要与原摘要比较,就可知道消息是否被改变了。因此消息摘要保证了消息的完整性。 消息摘要采用单向Hash 函数将需加密的明文"... 阅读全文

posted @ 2009-01-05 14:33 ChinaLeo 阅读(710) 评论(0) 推荐(0)

中级.NET开发人员

摘要: 中级.NET开发人员1) 阐述面向接口、面向对象、面向方面编程的区别面向接口更关注的是概念,它的原则是先定义好行为规范,再根据行为规范创建实现,严格的来说,面向接口应该是面向对象中的一部分吧,因为面向对象也强调的是依赖倒置原则,也就是实现依赖于抽象,而抽象不依赖于具体实现,更具比较的应该是面向接口与面向抽象对象,我的体会是面向接口更加灵活,但实现时候,稍微有些代码冗余,而面向抽象可以结合面向接口,... 阅读全文

posted @ 2009-01-05 14:22 ChinaLeo 阅读(302) 评论(0) 推荐(0)

学习.net应该知道什么

摘要: 原文地址:http://www.hanselman.com/blog/WhatGreatNETDevelopersOughtToKnowMoreNETInterviewQuestions.aspx 作者:Scott Hanselman 译者:Tony Qu 任何一个使用.NET的人1) 描述线程与进程的区别?线程(Thread)与进程(Process)二者都定义了某种边界,不同的是进程定义的是应用... 阅读全文

posted @ 2009-01-05 14:19 ChinaLeo 阅读(144) 评论(0) 推荐(0)

导航