Well, I've been racking my brain thinking about some authentication techniques, rather than the old password auth.
Does anyone have any ideas?
Type: Posts; User: mkthnx001
Well, I've been racking my brain thinking about some authentication techniques, rather than the old password auth.
Does anyone have any ideas?
Just to be on the safe side, this shouldn't cause me any problems, correct?:
char rot13 ( char x ) {
if (( x == 'a' ) || ( x == 'b' ) || ( x == 'c' ) || ( x == 'd' ) || ( x == 'e' ) || ( x...
Well, at first I was going to say I already tried that, and still didn't get the desired outcome.
Although it seems the problem was, that I replaced 'A' + 13 with 'A' + 18. After switching it...
Well, thanks for your replies anyways, but I ended up going about solving my problem a different, and maybe more complicated than necessary way, but it works. :P
One more thing though, I have this...
Honestly, I know why you're asking that, and that is to make sure I'm not getting anyone to do all the work for me.
Seeing as how I have no idea how to approach this problem, I don't have any code...
Okay, so the problem is, I'm reading content from a file, into a string. I need a solution that will read each character from the string, and pass it through a rot13 type of function.
So...
Is there any other method of doing this?
Yes, but I'm afraid I don't quite understand it. Isn't the example they show for copying one file's contents to another?
Anywho, if someone would be kind enough to explain the binary opening mode to me a bit more in detail, I'd really appreciate it.
No, that's not the problem, I just put the %USER% in the code snippet, to replace the actual value that was in that place.
Well, I replaced file.open (path.c_str()); with file.open (path.c_str(),ios::binary);, and it still doesn't seem to be working.
Is there something else I must do?
Okay, well, I tried adding ios::binary, and nothing is still written to the file.
Do I need to open and write to the file using a different method, now that I'm using binary mode?
Thanks, I knew it had something to do with how the file was opened. :)
Well, I'm having a little problem writing an encrypted value to a file.
To be a little more specific, I used an XOR like method to encrypt a string, and tried writing the value to a file. The...
Ah, okay.
Thank you all for your help. :)
I was asking because I seemed to be getting the wrong output when decrypting, while using said code, but after replacing the back-quote character with the new line character, the problem seems to...
Just to be clear, using getline(cin, encrypt_input, '`'); will cause errors, unlike cin >> encrypt_input;, right?
It's basically like this:
if ( option == crypter ) {
cout << "\nEncrypt or decrypt? - ";
cin >> crypter_option;
if ( crypter_option == encrypt ) {
system("cls");
cout <<...
After going over a few things, I am getting somewhat of the desired output, but not all of it, and one or two characters are capitalized, when they are supposed to be lowercase.
Are there any...
That's funny, I've already tried that, although I will try something else, and get back to you.
Hi, and thanks for your reply.
Unfortunately I do not know if you're being sarcastic, or not, as I just started learning cryptography involving C++.
Would you mind further explaining?
Hello, all.
After what seems like hours of searching on various search engines, and websites, I have decided to come here for help.
I have this code:
for ( int i = 0; i <...