|
|= is not an XOR operator but an OR-Assignment operator.
^ is the XOR operator for bitwise manipulation.
Furthermore, I am not sure if your proggy still would work. You need to convert the individual characters to asci integer and then use the XOR for manipulation back and forth. That will work guaranteed. Obviously you have to convert the integers (wich are the ASCI numbers) back to asci characters and store it in a string variable.
Also make sure to convert m_seed to an integer first, if not already.
And when you don't need buffer anymore, make sure you free the memory with delete[]!
Observe the subscript ( [] ) operator! When you use new [...], delete with delete[ ] .
__________________
|