August 16th, 2003, 07:47 PM
HELP! Need help to understand these codes! ..(BYTE)(....
AfxMessageBox("The Encryption Key is Not Suitable, please choose another one!");
hello...i really need to know what the codes about works...!!
Especially this :
for ur information.. i'd converted a set of strings into LONG blocks.. then encrypted them using TEA Algoritm.. and now..this part.. a friend of mine e-mailed me.. its for "CONVERTING THE EXCRYPTED TEXTS INTO STRING"...
I'm sorry i really need u guys to help me understand these codes..as my friend also dunno how it works..
Thanks in advance.
..to have the most amazing dream...
August 16th, 2003, 10:27 PM
The line retrieves the value stored in the index m_iCountString in the member array m_lEcrpTeksArry (an encryption key, I assume) and extracts a byte from it. Notice that, due to the way m_iCount4Long is used, I can assume that the code given reads a long value, MSB (most significant byte) first.
If 20 zero-bytes appear in the key, it is considered invalid.
August 17th, 2003, 02:53 PM
This is just because expression on right returns value something larger than BYTE/char. You can safely remove (in given case) and it will work fine except compiler warinings!
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.