I\'m working in a C++ unmanaged project.
I need to know how can I take a string like this \"some data to encrypt\" and get a byte[] array which I\'m gonna use as the
I dont think you want to use the c# code you have there. They provide System.Text.Encoding.ASCII(also UTF-*)
string str = "some text; byte[] bytes = System.Text.Encoding.ASCII.GetBytes(str);
your problems stem from ignoring the encoding in c# not your c++ code