无线配置文件保存问题 [英] wireless profile save problem

查看:137
本文介绍了无线配置文件保存问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

DATA_BLOB in;
DATA_BLOB out;
BYTE *pin=(BYTE*)"FIPL2";
DWORD din=strlen((char*)pin)+1;
	in.pbData = pin;
	in.cbData = din;
if(CryptProtectData(&in,L"what is it",NULL,NULL,NULL,0,&out))
{
    BYTE *b=out.pbData;
    // <<--HERE
}



if块的末尾(标记为<<-HERE"),我想将其转换为十六进制以另存为我的wifi密码.



At the end of the if block (marked with "<<--HERE"), I want to convert it into hexadecimal to save as my wifi password. How do I do that?

推荐答案

您要做的就是遍历数组并创建一个字符串,该字符串一次附加一个字节,其格式设置为十六进制值.
All you have to do is iterate through the array and create a string that appends one byte at a time formatted as a hex value.


这篇关于无线配置文件保存问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆