Currently I have a std:::string
called cipher_line
that I get from the process of:
string str_cipher_line;
// Get the Offline Mount Point
ifstream ifs1;
ifs1.open(offlineMountPoint.c_str());
if (ifs1.is_open()) {
getline(ifs1, str_cipher_line);
} else {
cout << "unable to open file" << endl;
return 1;
}
ifs1.close();
Now I want to be able to get a secure_string
from cipher_line
. secure_string
is defined below:
typedef std::basic_string<char, std::char_traits<char>, zallocator<char> > secure_string;
I don't understand how to do this. Should I employ memcpy
or strcpy
?