No description
Find a file
2024-04-01 17:03:02 +03:00
break.py Add files via upload 2024-04-01 17:03:02 +03:00
decode.py Add files via upload 2024-04-01 17:03:02 +03:00
encode.py Add files via upload 2024-04-01 17:03:02 +03:00
generate.py Add files via upload 2024-04-01 17:03:02 +03:00
readme.txt Add files via upload 2024-04-01 17:03:02 +03:00

McEliece cryptosystem implementation

Usage:
0. pip install numpy and galois
1. generate.py - generate and save public and private keys
2. send pubkey.py and encode.py to your friend
3. your friend runs encode.py, write secret string and send message.py to you
4. decode.py - get secret string

Hacker can get your private key if he will know a half of it (and pubkey.py, decode.py and Reed-Solomon algo).
Check break.py to understand how hacker can do this.

todo: check randomization during encode (add vector z, check https://en.wikipedia.org/wiki/McEliece_cryptosystem)