#include <iostream>
#include <unistd.h>

test.cpp
-------------------
void main() {
char *salt="a9";
char *key="Secret";

cout << crypt(key, salt)) << endl;
exit(0);
}

]$ g++ -o test test.cpp