I am currently trying to decrypt this superincreasing Knapsack cipher. I thought I understood how to do it, but the answers I am getting don't seem correct.
Superincreasing w: [2, 9, 16, 43, 71, 156, 301, 619]
q: 1337
modular inverse of r: 236
message: 2846 2947 1589 4010 4633 4053 1531 4053 2738 1589 3426 5676 2262 5676 3902 425 425 2947 4842
What I've done is 236(c)mod1337= x where c equals a number in the message.For example, (236)(2846)mod1337, and then I would get 482. Next, I subtracted the largest element in w which was less than or equal to 482, and repeated until the difference was equal to 0.
482-301=181
181-156=25
25-16=9
9-9=0
I then added the differences 181+25+9+0 = 215, converted 215 to binary 11010111, and then to text, x.
When I started calculating the next numbers, I started getting non ASCII characters, leading me to believe I messed up somewhere when calculating the cipher.
Any advice or help would be greatly appreciated.
Thanks,
Ethan