Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add columnar transposition cipher #344

Merged
merged 5 commits into from
Apr 18, 2023

Conversation

JulesVerner
Copy link
Contributor

This PR adds the columnar transposition cipher as an alternative for the already implemented caesar cipher.
So far, it's only an additional algorithm-option for the crypto-command and does not have an implementation for the crack-command.
I added a corresponding wiki-suggestion in the wiki folder; Although the explanation might be a bit complicated.
Looking forward to hearing your thoughts on this! 😄

@y0014984
Copy link
Owner

y0014984 commented Apr 6, 2023

Thank you for this contribution. I will have a look into it tomorrow.

@y0014984 y0014984 self-requested a review April 11, 2023 12:17
@y0014984 y0014984 added enhancement New feature or request armaOS security labels Apr 11, 2023
@y0014984 y0014984 linked an issue Apr 11, 2023 that may be closed by this pull request
@JulesVerner JulesVerner changed the base branch from master to dev April 11, 2023 13:26
Copy link
Owner

@y0014984 y0014984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good as far as I can tell. Some minor changes would be useful:

  • Use blank spaces to fill rows on encryption and decryption instead of random chars
  • You could add some hacking functions to the crack command, like guessing the key length, because the key must be an integer divider of the message length; Also you could think about implementing bruteforce with a given keylength (This is not mandatory, but would be nice if you have enough time to implement)

@y0014984
Copy link
Owner

I forgot to mention: please add all languages to the stringtable.xml. You can use the english version but please add the tags for all currently supported languages. This is easier for our translators und prevents formatting issues. Thank you.

@JulesVerner
Copy link
Contributor Author

JulesVerner commented Apr 16, 2023

  • Use blank spaces to fill rows on encryption and decryption instead of random chars

I would suggest using '_' or similar special characters, instead of spaces.
Spaces appended to the end of the message are not visible in the console and therefore it's likely that a false encrypted message will be used.
Also, as far as I know, trailing spaces in the messages will be cut off, when calling the commands.

@y0014984
Copy link
Owner

I would suggest using '_' or similar special characters, instead of spaces.

Do it. We will see how it behaves.

@y0014984 y0014984 self-requested a review April 18, 2023 11:55
Copy link
Owner

@y0014984 y0014984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I will merge this PR.

@y0014984 y0014984 merged commit fb6f672 into y0014984:dev Apr 18, 2023
@y0014984 y0014984 mentioned this pull request Jul 11, 2023
22 tasks
@y0014984 y0014984 mentioned this pull request Jul 26, 2023
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
armaOS enhancement New feature or request security
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Allow creation of encrypted files directly in the eden editor
2 participants