This is a example c code, compiled with gcc in mac os
this is the code
int main(int argc, char *argv[])
{
char key[] = "key-123";
if(argc == 2){
printf("Checking key ... %s\n", argv[1]);
if (strcmp(argv[1], key) == 0) {
printf("Access Granted");
} else {
printf("Denied");
}
}
else{
printf("insert the key");
}
return 0;
}