Originally posted by: trevor
How does it handle Unicode strings
ReplyOriginally posted by: drWolf
BOOL ASCII2Bin(unsigned char *pIn, long lSize, unsigned char **ppOut)
szBuf[2] = NULL;
This function has bug, below new version (bugs free I hope ;)
{
char szBuf[3];
// alloc memory (lSize/2) + one for zero at end
*ppOut = (unsigned char *)malloc((lSize/2)+1);
if (!*ppOut)
return FALSE;
lSize/=2; // here was bug! size should be/2
for (long l=0; l<lSize; l++)
{
szBuf[0] = pIn[l*2];
szBuf[1] = pIn[(l*2)+1];
(*ppOut)[l] = (unsigned char)strtoul(szBuf, NULL, 16);
}
return TRUE;
}
Originally posted by: Gerard J. Nicol
What happens if the user's NT password password changes?
Will the string still decrypt?
If so excellent work!
Reply