Cryptopp AES示例:修订历史

跳到导航 跳到搜索

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

2025年1月31日 (星期五)

  • 当前之前 20:242025年1月31日 (五) 20:24BrainBs 讨论 贡献 2,361字节 −35 无编辑摘要
  • 当前之前 20:232025年1月31日 (五) 20:23BrainBs 讨论 贡献 2,396字节 +2,396 创建页面,内容为“<syntaxhighlight lang="cpp"> #include <iostream> #include <string> #include "cryptlib.h" #include "aes.h" #include "modes.h" #include "files.h" #include "osrng.h" #include "hex.h" using namespace CryptoPP; using namespace std; int main(int argc, char* argv[]) { // 建立隨機亂數產生器 // AutoSeededRandomPool prng; // 將金鑰與 IV 放置於安全的記憶體空間 // SecByteBlock key(AES::DEFAULT_KEYLENGTH); // 採用預設的金鑰…”