8 int main(int argc, char **argv)
14 memset(output, '\0', 1024);
15 memset(output2, '\0', 1024);
18 printf("%s: string key\n", argv[0]);
22 if ((strlen(argv[1]) > 1020) || (strlen(argv[2]) > 512)) {
23 printf("%s: size err\n", argv[0]);
28 OS_BF_Str(argv[1], output, argv[2], strlen(argv[1]), OS_ENCRYPT);
31 OS_BF_Str(output, output2, argv[2], strlen(argv[1]), OS_DECRYPT);
33 printf("finished.\n");
34 printf("input: '%s'\n", argv[1]);
36 for (i = 0; i <= strlen(argv[1]); i++) {
37 printf("%d", output[i]);
40 printf("output2: '%s'\n", output2);