埃斯提爱慕
发布时间:2024-5-24 18:57
|
工程创建参考: https://shequ.stmicroelectronics ... p;extra=#pid2657071 
生成代码 定义几个字符串,数组等,模拟文件数据 /* USER CODE BEGIN PV */ char *SourceFile = "STMicroelectronics Community"; char EncryptFile[128] = {0}; char DecryptFile[128] = {0}; /* USER CODE END PV */ main.c中添加程序 /* USER CODE BEGIN BSP */ /* -- Sample board code to send message over COM1 port ---- */ printf("Welcome to STM32 world !\n\r"); /* -- Sample board code to switch on leds ---- */ BSP_LED_On(LED_GREEN); printf("The source file is: %s !\n\r", SourceFile); HAL_CRYP_Encrypt(&hcryp, SourceFile, strlen(SourceFile), EncryptFile, 1000); printf("The encrypted file is: %s !\n\r", EncryptFile); HAL_CRYP_Decrypt(&hcryp, EncryptFile, strlen(SourceFile), DecryptFile, 1000); printf("The Decrypted file is: %s !\n\r", DecryptFile); /* USER CODE END BSP */ 编译运行,看效果 
反正加密后的我是看不懂,哈哈哈哈 |
在主机模式下使用STM32Cube HAL I2C驱动
【评论有奖】STM32CubeIDE 2.0版本要来了
F429I-DISC1体验报告(2) 按钮和弹窗GUI的简单交互设计丨国庆开发板测评活动
架构更新!STM32CubeIDE 2.0.0重磅发布,STM32CubeMX成独立工具(文末有奖)
在旧版本STM32CubeIDE内快速更新至STM32CubeIDE2.0
经验分享 | 基于STM32CubeIDE的指定存储话题
实战经验 | 使用STM32CubeIDE开发上位机工具
【教程】STM32CubeIDE for Visual Studio Code 安装
解锁STM32开发新体验,STM32CubeIDE for VS Code全解析(附实操视频)
速看!STM32CubeIDE for Visual Studio Code预发布版全面整合至正式版,完成重大升级
微信公众号
手机版