Name: Anonymous !2bgybBZ7HI 2007-09-21 1:19 ID:0fUJYRhI
how the fuck??
If I has a string "foo" how do I get the tripcode for it?
If I has a string "foo" how do I get the tripcode for it?
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
int main(void) {
int trip_length;
int level;
char trip[9];
char salt[3];
salt[2] =
trip[0] =
trip[1] =
trip[2] =
trip[3] =
trip[4] =
trip[5] =
trip[6] =
trip[7] =
trip[8] = 0;
trip[0] = 'a';
for(trip_length = 1; trip_length < 8;) {
salt[0] = trip[1]; salt[1] = trip[2];
printf("#%s -> %s\n", trip, crypt(trip, salt) + 3);
level = 0;
do {
if(trip[level]) trip[level]++;
else trip[level] = 'a';
if(trip[level] > 'z') {
trip[level] = 'a';
level++;
} else break;
} while(1);
}
return EXIT_SUCCESS;
}