Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 10,425 of 10,840    |
|    Antony Clements to J French    |
|    Re: a problem with copymem API    |
|    17 Feb 07 23:38:01    |
      From: antony.clements@optusnet.com.au              i am grabbing two 4 byte strings and placing them in a long one ascii code       at a time since i can't get any dynamic values any other way. this means       that both inputs are between 000 and 255255255 or three bytes of data. these       values will fit into a long. the end goal is to have a sub where i can       manipulate how many bytes are taken and converted into their respective       ascii codes, or a decimal value of the string. either is acceptable but i       think that things will work better with the ascii codes as placing a byte       array in a long returns a static value regardless of what is actually in the       byte array.              for an effective encryption sequence both strings need to be at least 4       bytes, for this reason i am using a double instead because it can fit the       ascii codes of 4 characters in it. these strings must be turrned into a       value so they can be XOR'd together. the result of this is then XOR'd with a       random value, the result of this is then XOR'd with the ascii code of the       byte of the file that is being encrypted and then mod 256. taking 4 bytes       from each will on occasion throw up an overflow error in a double data type       and will not work at all with a long. if you still don't understand what i       am trying to do then i will be happy to post the block of code so you can       see exactly what it is doing and where it is not working.              "J French" |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca