Plan 9 from Bell Labs’s /usr/web/sources/contrib/mycroftiv/unreleased/tripcodefinder/tripcount2.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#include <stdio.h>

#include "str_utils.h"
#include "str_utils.c"
#include "hash_2chan.h"
#include "hash_2chan.c"

int main(char argc, char *argv[]) {
	int count = atoi(argv[1]);
	char buf[32] = "";
	read(0, buf, 32);
	char *output = encrypt_2chan(buf, sizeof buf);
	printf("%s\n", output);
	char *old=strdup(output);
	for (int i; i < count; i++){
		char *output = encrypt_2chan(old, 11);
		printf("%s - %s\n", output, old);
		old=output;
	}
	return 0;
}

extern int tripcrunch_test(const char *trip, const char *code, size_t len, FILE *stream) {
	return 0;
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].