#include #include #include #include #define E stderr #ifdef DEBUG #define message fprintf #else #define message (void) #endif char *crypt(), *getpass(); main( argc, argv ) int argc; char *argv[]; { int ii, len; char *tmp; if( argc < 2 ){ printf( "0" ); exit(0); } len = strlen( argv[1] ); message(E, "ORIG:%s\n", argv[1]); for( ii = 2 ; ii < len ; ii++ ){ tmp = crypt( &argv[1][ii], argv[1] ); argv[1][ii] = *(tmp+ii); } message(E, "FIGH:%s\n", argv[1]); printf( "%d\n",Eval(argv[1]) ); } Eval( s ) char *s; { int ii; int len, total = 0; len = strlen(s); for( ii = 2 ; ii < len ; ii++ ) total += (isupper(s[ii])?(s[ii]*16): (islower(s[ii])?(s[ii]*8): (isdigit(s[ii])?(s[ii]): (-(s[ii]*32))))); return(total); }