- 博客(0)
- 资源 (3)
- 收藏
- 关注
加密库OpenSSL
OpenSSL静态库附例子
printf("Begin encrypt...\n");
ret = RSA_public_encrypt(flen,in,out,r,RSA_NO_PADDING);
if (ret < 0)
{
printf("Encrypt failed!\n");
cin.get();
return 1;
}
printf("Size:%d\n", ret);
printf("ClearText:%s\n", in);
printf("CipherText(Hex):\n");
2015-04-01
CSerialPort串口操作类
串口编程类
BOOL InitPort()
void WriteToPort(char* string);
void WriteToPort(char* string,int n);
void WriteToPort(LPCTSTR string);
void WriteToPort(BYTE* Buffer, int n);
void ClosePort();
2015-04-01
CJson源码 C语言
json解析操作源码附有例子。
char *out;cJSON *json;
json=cJSON_Parse(text);
if (!json) {printf("Error before: [%s]\n",cJSON_GetErrorPtr());}
else
{
out=cJSON_Print(json);
cJSON_Delete(json);
printf("%s\n",out);
free(out);
}
2015-04-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人