+ std::string tmp = line;
+ std::string password;
+ int pwdpos = tmp.find(".password=", 0);
+ if( pwdpos != std::string::npos)
+ {
+ filecontent += tmp.substr(0,pwdpos +10);
+ for ( int pos = pwdpos +10; pos < tmp.length()-1; ++pos )
+ {
+ filecontent += "X";
+ }
+ filecontent += "\n";
+ }
+ else {
+ filecontent += line;
+ }