cryptacquirecontextw(&hprov,null,l("microsoft base cryptographic provider v1.0"),1,0xf0000000); cryptcreatehash(hprov,0x8004,null,null,&hhash); cryptcreatehash(hprov,0x8004,null,null,&hhash);005f9dfe: crypthashdata(hhash,passwdbuf,0x12,null);passwdbuf是小写的passwd缓冲区,然后附加一个key,如上例子就是对 {'1','2''3''4''5''6',0x17,0x51,0x85,0x7f}这样的一个字串进行hash加密 crypthashdata(hhash,passwdbuf,0x12,null);passwdbuf是大写的passwd缓冲区,然后附加一个key 005f9e3e: cryptgethashparam(hhash,2,&passwdout,&outlen,0);取出passwdbuf是小写的passwd的加密值 cryptgethashparam(hhash,2,&passwdout,&outlen,0); |