How can I convert each byte of encrypted data into two hexidecimal characters, so that a byte of the value of 'z' becomes the string of two characters: '7A',
My encrypted data is of variable length.
Also once converted I need to conver the hexidecimal back to the encrypted data So any suggestions please.
My encrypted data looks like the following
" [U | £ ](%IY X/2 A9 f Qv dyyyy itit"
andn is obtained by doing the following
PBYTE pBufPtr if(!Encrypt(hKey, 0, TRUE, 0,(BYTE *)pBufPtr, &dwCount, dwBufferLen))
I need to convert it into hexidecimal and display it to user so the user can read it out and at the other end we'll take the hexidecimal and convert it back into the encrypted data. So need help with both ways. Thanks.
Visual C++1
|