-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Overview
The current code impliments one layer of encryption using the Vigenerre cipher. The data is then split up into packets and then the metadata is added to each packet.
- The metadata remains unencrypted.
- Only using the Vigenère cipher, the data is vulnerable to Kasiski examination, frequency analysis, etc.
- Missing second encryption layer
- Less security against cryptanalysis
- Junk insertion is the only obfuscation (weak)
What is needed:
currently, encrypt is a vigenerre cipher. (a stream cipher). we need vigenerre cipher as we are doing now. then
add junk alternating like: ajajajajaja where a is actual character and j is junk character. (remove these while decrptying. is indipendet of the key.) (Might already be happening, do check)
Then split up into packets then add the metadata.
Make sure it fits into a matrix adding extra "z" characters.
Then we do a hill cipher with key being a square matrix.
then make the packets using that. (have the packets be a little bigger.) (If you can think of a different idea, ask me and go ahead.)
You may refer to files in the useless_delete folder and the hill-cipher_not_usable if you wish, though it may not help you that much.