#include #include #include int main(void) { char key[BUFSIZ]; char salt[BUFSIZ]; printf("Key: "); if(fgets(key, sizeof(key), stdin) == NULL) exit(0); printf("Salt: "); if(fgets(salt, sizeof(salt), stdin) == NULL) exit(0); key[strlen(key) - 1] = '\0'; salt[strlen(salt) - 1] = '\0'; printf("%s\n", crypt(key, salt)); return 0; }