I want the string that was inputed to be treated as a c++ string since its easier.Code:#include <string> #include <atlenc.h> Encrypt(string Encrypt) { /* The part where we convert the ASCII values to Hexadecimal*/ /*We must declare all our variables*/ int Length; Length=(string length(Encrypt)); int NewLength; NewLength=(Length*2+1); int SecondEncodeLength; SecondEncodeLength=(NewLength*2+1); string NewString; string SecondEncode; /*End of declaring variables*/ /*Now to the encoding Ascii to Hex values*/ int Encrypted inline bool AtlHexEncode( Encrypt, Length, NewString, NewLength )throw(); /*End of Ascii to Hex, now for Hex to Hex which will encode in to an even longer string*/ inline bool AtlHexEncode( NewString, NewLength, SecondEncode, SecondEncodeLength )throw(); /*Now to convert it from Hex to Oct so then it is all intiger values, I just hope it doesnt drop the 0 from the beginning of the string (If it translates to that)when its converted to a int value*/ /*int Encrypted=SecondEncode; We don't need this so I'm just going to save it for future refrence*/
Wait it wont be converted all into intigers, but if I convert the Hex to Octadecimal (base 8) it WILL become all intiger values.
but how?
EDIT: Wait, if I convert it to Oct first then Hex, it will be all intigers and it will become even more obscured