0
CIPHER
Hi I would like to make a fence (or zig zag) cipher in C using matrices of course but I don't have in mind how to do it a help?
1 Odpowiedź
0
Never known such cipher (im not very good in encryption) but a fast look to wikipedia and i understood it.
Anyway, if you want use matrices, an indea can be (for encription):
- create a matrix r x c where r is the number of fence and c is the size of message/ r (rounded up).
- fill the matrix with a 0 value
- fill the matrix, from top to bottom by column, with message character by character
the final encripted message coul be obtained by reading the matrix by rows ignoring the 0 values