【正文】
to encrypt the data. ? CryptoAPI supports both publickey and symmetric key cryptography. It includes functionality for encrypting and decrypting data and for authentication using digital certificates. It also includes a cryptographically secure pseudorandom number generator function CryptGenRandom. ? CryptoAPI works with a number of CSPs (Cryptographic Service Providers) installed on the machine. CSPs are the modules that do the actual work of encoding and decoding data by performing the cryptographic functions. Γ В CSP ? CryptoAPI works with a number of CSPs (Cryptographic Service Providers) installed on the machine. – CSPs are the modules that do the actual work of encoding and decoding data by performing the cryptographic functions. – CSP/DLL – – MS對(duì) CSP/DLL的 簽名 Γ В CAPI結(jié)構(gòu)圖 ? Γ В CAPI例子程序 ? MSDN example ? 改正了一個(gè) bug – 加密 /解密一個(gè)文件 ? 相關(guān) CAPI函數(shù) – CryptAcquireContext – CryptReleaseContext – CryptEncrypt – CryptDecrypt Γ В Cryptography API: Next Generation (CNG) ? Windows Vista features an update to the Crypto API known as Cryptography API: Next Generation (CNG). ? It has better API factoring to allow the same functions to work using a wide range of cryptographic algorithms, and the inclusion of a number of newer algorithms that are part of the National Security Agency (NSA) Suite B. ? It is also flexible, featuring support for plugging in custom cryptographic APIs into the CNG runtime. CNG works in both user and kernel mode, and also supports all of the algorithms from the CryptoAPI. ? The Microsoft provider that implements CNG is housed in . Γ В ? CNG also supports Elliptic Curve Cryptography which is also secure and uses shorter keys than RSA. The CNG API integrates with the smart card subsystem by including a Base Smart Card Cryptographic Service Provider (Base CSP) module which encapsulates the smart card API. Smart card manufacturers just have to make their devices patible with this, rather than provide a fromscratch solution. ? Γ В DPAPI: Data protection API ? DP API – a relatively easytouse cryptography API available as a standard ponent in Microsoft Windows 2023 and later versions of Windows operating systems. ? 示例程序 – 連接庫 “ ” Γ В DPAPI例子 ? main() ? { ? DATA_BLOB in, out, in2。 ? = (BYTE*)my input text as if none。 ? = strlen(my input text as if none)+1。 ? BOOL b = CryptProtectData(in, NULL, NULL, NULL, NULL, 0, out)。 ? if (b) ? { b = CryptUnprotectData(out, NULL, NULL, NULL, NULL, 0, in2)。 ? if (b) ? puts((char*)())。 ? else ? puts(err)。 ? } ? return 0。 ? } Γ В Data Execution Prevention (DEP) ? DEP – a security feature included in modern Microsoft Windows operating systems that is intended to prevent an application or service from executing code from a nonexecutable memory region. – This helps prevent certain exploits that store code via a buffer overflow, for example. – DEP was introduced in Windows XP SP2, also in Windows Server 2023 SP1 and Windows Vista. Later versions of the operating systems support this feature as well. Γ В XP:數(shù)據(jù)執(zhí)行保護(hù) ? ? multi(0)disk(0)rdisk(0)partition(1)\WINDOWS=Microsoft Windows XP Pro /noexecute=optin /fastdetect Γ В Linux中的 “DEP”, and more ? Data Execution Prevention (DEP) ? in Linux ? in CPU ? NX: No eXecute by AMD ? XD: eXecute Disable by Intel Γ В (Open) Cryptographic Libraries ? OpenSSL, NSS, POSSE, OpenSSH, GnuTLS, MatrixSSL, cryptlib, GNU Crypto, Crypto++, BeeCrypt, Cryptlib, Cryptix, LibTomCrypt, libgcrypt, MIRACL, Cryptix, borZoi, ? Try some of these Γ В Crypto in Java/JDK/JRE ? Java SE Security homepage – ? JDK 6 Securityrelated APIs Developer Guides – /security/ Γ В REF ? debian:~ aptitude search crypt | wc 80 632 6480 Γ В 推薦閱讀 /實(shí)驗(yàn): OpenSC Γ В Q A ? Γ В ? 靜夜四無鄰,荒居舊業(yè)貧。 , January 25, 2023 ? 雨中黃葉樹,燈下白頭人。 21:47:5221:47:5221:471/25/2023 9:47:52 PM ? 1以我獨(dú)沈久,愧君相見頻。 :47:5221:47Jan2325Jan23 ? 1故人江海別,幾度隔山川。 21:47:5221:47:5221:47Wednesday, January 25, 2023 ? 1乍見翻疑夢(mèng),相悲各問年。 :47:5221:47:52January 25, 2023 ? 1他鄉(xiāng)生白發(fā),舊國見青山。 2023年 1月 25日星期三 下午 9時(shí) 47分 52秒 21:47: ? 1比不了得就不比,得不到的就不要。 。 2023年 1月 下午 9時(shí) 47分 :47January 25, 2023 ? 1行動(dòng)出成果,工作出財(cái)富。 2023年 1月 25日星期三 9時(shí) 47分 52秒 21:47:5225 January 2023 ? 1做前,能夠環(huán)視四周;做時(shí),你只能或者最好沿著以腳為起點(diǎn)的射線向前。 下午 9時(shí) 47分 52秒 下午 9時(shí) 47分 21:47: ? 沒有失敗,只有暫時(shí)停止成功!。 , January 25, 2023 ? 很多事情努力了未必有結(jié)果,但是不努力卻什么改變也沒有。 21:47:5221:47:5221:471/25/2023 9:47:52 PM ? 1成功就是日復(fù)一日那一點(diǎn)點(diǎn)小小努力的積累。 :47:5221:47Jan2325Jan23 ? 1世間成事,不求其絕對(duì)圓滿,留一份不足,可得無限完美。 21:47:5221:47:5221:47Wednesday, January 25, 2023 ? 1不知香積寺,數(shù)里入云峰。 :47:5221:47:52January 25, 2023 ? 1意志堅(jiān)強(qiáng)的人能把世界放在手中像泥塊一樣任意揉捏。 2023年 1月 25日星期三 下午 9時(shí) 47分 52秒 21:47: ? 1楚塞三湘接,荊門九派通。 。 2023年 1月 下午 9時(shí) 47分 :47January 25, 2023 ? 1少年十五二十時(shí),步行奪得胡馬騎。 2023年 1月 25日星期三 9時(shí) 47分 52秒 21:47:5225 January 2023 ? 1空山新雨后,天氣晚來秋。 下午 9時(shí) 47分 52秒 下午 9時(shí) 47分 21:47: ? 楊柳散和風(fēng),青山澹吾慮。 , January 25, 2023 ? 閱讀一切好書如同和過去最杰出的人談話。 21:47:5221:47:5221:471/25/2023 9:47:52 PM ? 1越是沒有本領(lǐng)的就越加自命不凡。 :47:5221:47Jan2325Jan23 ? 1越是無能的人,越喜歡挑剔別人的錯(cuò)兒。 21:47:5221:47:5221:47Wednesday, January 25, 2023 ? 1知人者智,自知者明。勝人者有力,自勝者強(qiáng)。 :47:5221:47:52January 25, 2023 ? 1意志堅(jiān)強(qiáng)的人能把世界放在手中像泥塊一樣任意揉捏。 2023年 1月 25日星期三 下午 9時(shí) 47分 52秒 21:47: ? 1最具挑戰(zhàn)性的挑戰(zhàn)莫過于提升自我。 2023年 1月 下午 9時(shí) 47分 :47January 25, 2023 ? 1業(yè)余生活要有意義,不要越軌。 2023年 1月 25日星期三 9時(shí) 47分 52秒 21:47:5225 January 2023 ? 1一個(gè)人即使已登上頂峰,也仍要自強(qiáng)不息。 下午 9時(shí) 47分 52秒 下午 9時(shí) 47分 21:47: MOMODA POWERPOINT Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id urna blandit, eleifend nulla ac, fringilla purus. Nulla iaculis tempor felis ut cursus. 感謝您的下載觀看 專家告訴