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
If you just need to read the data.
encrypt(str.data(),str.size());
If you need a read/write copy of the data put it into a vector. (Don;t dynamically allocate space that's the job of vector).
std::vector<byte> source(str.begin(),str.end());
encrypt(&source[0],source.size());
Of course we are all assuming that byte is a char!!!