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
Normally, encryption functions take
encrypt(const void *ptr, size_t bufferSize);
as arguments. You can pass c_str and length directly:
encrypt(strng.c_str(), strng.length());
This way, extra space is allocated or wasted.