摘要:
host = $_host; $this->uid = $_uid; $this->pwd = $_pwd; $this->db = $_db; $this->link = mysql_connect($this->host,$this->uid,$this->pwd); mysql_select_db($this->db,$this->link); } function exec_sql($sql){ //if you use insert sentence,then you must open your link; $res = mys 阅读全文
摘要:
概述:加密数据可以使用对称加密或非对称加密算法,使用对称加密比非对称密钥快得多,但对称密钥需要解决安全交换密钥的问题。在.NET Framework中,可以使用System.Security.Cryptography命名空间中的类来加密。它实现了几个对称和非对称算法。从.NET 3.4开始,一些新类以Cng作为前缀或后缀,表示Cryptography Next Generation,用于采用Windows NT 6.0或更高内核版本的操作系统(Vista,Win7,Win8)API可以使用基于提供程序的模型,编写独立于算法的程序。System.Security.Cryptography命名空间 阅读全文