src/Item26/Source.cpp
// this function defines the variable "encrypted" too soon
this function defines the variable "encrypted" too soon
this function defines the variable " encrypted " too soon
std::string EncryptPassword(const std::string& password)
{
	using namespace std;
	if (password.length() < MinimumPasswordLength) {
		throw logic_error("Password is too short");
	}
	string encrypted(password);
	return encrypted;
}
std :: string EncryptPassword ( const std :: string & password ) { using namespace std ; if ( password . length ( ) < MinimumPasswordLength ) { throw logic_error ( " " ) ; } string encrypted ( password ) ; return encrypted ; }
this function defines the variable "encrypted" too soon
this function defines the variable " encrypted " too soon
// do whatever is necessary to place an // encrypted version of password in encrypted