Crypto - knutsacque
Behold my original knut sacque scheme in 4D -sera
Last updated
Behold my original knut sacque scheme in 4D -sera
Last updated
Here, i, j and k can be thought of unit vectors in a Cartesian plane except for the fact that .
This takes 4 bytes at a time and converts it into the format
A is similarly produced as for each corresponding pair in msg
sm is the sum of all the products of the pairs of msg and A. For example, the first product form is
Separating and rewriting into matrix form, we get
Generally we can solve for using A.solve_left()
in sage , but since the values of are much bigger than the values of , we have to solve it using LLL.
Usually while solving knapsack cryptosystems, we only need one vector (public key) to find the short vector. However, due to the size difference between and , we will be using all the four vectors that we have inorder for LLL to produce a vector that isn't too short and fits to our solution. In the CJLOSS algorithm, since the key consists of 0/1, we use ½ in the last row to increase the density. Similarly, since are ascii characters, we approximate that they are in the range {60,100} and we use 80 in the last row
After applying LLL on this matrix we get all the values of , and after converting to ascii we get the flag.