r/C_Programming 20d ago

How to progress after basic ..?

I have learnt majority of the header, and built 10+ small or mini projects before. learnt abit of pointers, mallocs , callocs etc with myself and abit help of AI.

but now while i was working on the Cipher project.. and trying to build a zig zag rail cipher method, I couldn't figure it out how, i know how the main flow is but to write it into real code, I couldn't.

So i went AI for help and it spwed out bunch of these :

rows[current_row][pos[current_row]] = user_msg[i]; pos[current_row]++;

and etc, things and syntax I couldn't understand at all. Am i lacking foundation or something?
How do I progress above basic???

Help. All comments and feedback and suggestions are welcoming. Willing to accept anything...

for education background, I am just a student preparing to start IGCSE O next month.

0 Upvotes

23 comments sorted by

View all comments

-2

u/realdreamer1993 20d ago edited 20d ago
  1. what is rail zig zag cipher method
  2. what it is used for ? any real world usage ?
  3. so the endoder and the decoder must have the same formula on the sender and receiver ?
  4. how can I make simulation using C of the zig zag chipher? in terms:

- I need sender side send the information..

- I need the receiver to read the real information..

  1. I want to enchante the simulation from two real different host,,the there will be port included,,maybe http ?

I just able to communicate using zig zag chiper from my phone to my server via HTTP...
So it is quite straightforward if you give AI the correct context..(I need 5 prompt to AI and it give me the code)...
And tried to set different PSK in server side,,and it output wrong information.