Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaPoo committed Jul 11, 2020
1 parent c8abc46 commit f5f1c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CDDC2020/A Kind of Crypto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ print(s.decryption(ct[60:]).decode('utf-8'))

## Beyond: Recovering the whole message and the original seed used

I wondered whether there could be some wacky secret message the author placed in the other parts of the encrypted message, and maybe in the seed? Good thing is, from here, all we gotta do is apply Smart's Attack 7 more times to recover the original seed! However, at every iteration, there are two solutions for `s`, namely `s` and `p-s`, where `p` is the modulo of the finite field, which isn't a problem, just bruteforce all solutions!
I wondered whether there could be some funny secret message the author placed in the other parts of the encrypted message, and maybe in the seed? Good thing is, from here, all we gotta do is apply Smart's Attack 7 more times to recover the original seed. However, at every iteration, there are two solutions for `s`, namely `s` and `p-s`, where `p` is the modulo of the finite field, which isn't a problem, just bruteforce all solutions.

```python
s1 = s2
Expand Down

0 comments on commit f5f1c92

Please sign in to comment.