ITPub博客

首页 > > > C++ const unsigned char * 转换问题

C++ const unsigned char * 转换问题

作者:deeply 时间:2019-08-29 11:22:40 0 删除 编辑

CSLAChallenge challenge;

if (false == challenge.SLAChallenge((unsigned char )plainText, plainLen))

{

printf("error: %d", challenge.GetError());

return;

}

printf("%s\n", challenge.GetCipher()); //GetCipher类型为const unsigned char 

//这里希望输出"23 b1 3b 76 e3 7e 79 f3 20 f2 43 eb f6 f4 52 c8 "

//实际输出是"#?v銅y?駽膂鬜塞?P坢...",上面的内容是以2进制写文件后

//用hex查看器的结果,肯定帮忙指导转换。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1978/viewspace-3153303/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-05-30

  • 博文量
    215
  • 访问量
    24546