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