![]() |
|
[C] What's wrong with my Encryption thingy?? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] What's wrong with my Encryption thingy?? (/showthread.php?tid=6054246) |
What's wrong with my Encryption thingy?? - Consulting Detective - Mar 3, 2020 Hi guys. I'm messing around with file encryption in C. I wrote a small program that will take a file, process it through 3 encryption algorithms and creates a new file with the encrypted output. My problem is that after the string in the buffer goes through the first algorithm, it is not giving the right output I want. Output: PHP Code PHP Code P.S. sorry for the messy code, still learning. RE: What's wrong with my Encryption thingy?? - Zexture - Mar 3, 2020 (Mar 3, 2020 04:08 AM)Consulting Detective Wrote: Hi guys. I'm messing around with file encryption in C. I wrote a small program that will take a file, process it through 3 encryption algorithms and creates a new file with the encrypted output. You're getting the length of the string before reading it from the file and writing it into the buffer RE: What's wrong with my Encryption thingy?? - Consulting Detective - Mar 3, 2020 (Mar 3, 2020 04:44 AM)Zexture Wrote: You're getting the length of the string before reading it from the file and writing it into the buffer Oh you're right duh. Thank you :) |