klun
Junior Member level 2
![Junior Member level 2](/styles/images/ranks/clevel2.gif)
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 void main(void) { unsigned long L = 1, R = 2; BLOWFISH_CTX ctx; using namespace std; string input = ""; cout << "Please enter a valid sentence (with spaces):\n>"; getline(cin, input); cout << "You entered: " << input << endl << endl; Blowfish_Init (&ctx, (unsigned char*)(input.c_str), 7); //line with error Blowfish_Encrypt(&ctx, &L, &R); printf("%08lX %08lX\n", L, R); if (L == 0xDF333FD2L && R == 0x30A71BB4L) printf("Test encryption OK.\n");
Can anyone help me with that error?
Last edited by a moderator: