diff --git a/astriumnet.c b/astriumnet.c index 24de472..47ecc41 100644 --- a/astriumnet.c +++ b/astriumnet.c @@ -25,6 +25,7 @@ #include #include + extern char *trim(char *); typedef struct { @@ -141,6 +142,8 @@ static long long calculateToken(char *password, long long hash) long long tmp; int i; + assert(sizeof(hash) == 8); + tmp = hash ^ 0x80AA80AA; for(i = 0; i < strlen(password); i++){ tmp += password[i] * (long long)pow(2,i);