2011-05-09から1日間の記事一覧

C++、C#、秘密鍵、公開鍵、RSA

RSAの鍵作成(C++)->暗号化(C#)->復号化(C++)の例RSAの鍵作成(C++)int _tmain(int argc, _TCHAR* argv[]) { // RSA 秘密鍵と公開鍵を作成し、両方をファイル化 HCRYPTPROV hCryptprov; BOOL bl = CryptAcquireContext(&hCryptprov, NULL, MS_ENH_RSA_AES_PROV…