#include #include #include using namespace std; const string SALT = "$6$"; int main() { string password; string hash; while (1) { cout << "Enter a password " << endl; cin >> password; cout << "The password is " ; hash = crypt(password.c_str(), SALT.c_str()); cout << hash << endl; } return 0; }