Skip to content

Implement Hill cipher as second layer of encryption after the vigennere. #3

@SA-10125

Description

@SA-10125

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.

  1. The metadata remains unencrypted.
  2. Only using the Vigenère cipher, the data is vulnerable to Kasiski examination, frequency analysis, etc.
  3. Missing second encryption layer
  4. Less security against cryptanalysis
  5. 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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions