Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

WIP: Add Playfair cracker#13

Draft
RotationMatrix wants to merge 1 commit into
Ciphey:masterfrom
RotationMatrix:add-playfair
Draft

WIP: Add Playfair cracker#13
RotationMatrix wants to merge 1 commit into
Ciphey:masterfrom
RotationMatrix:add-playfair

Conversation

@RotationMatrix

Copy link
Copy Markdown

Companion to my PR in Ciphey.

@todo

todo Bot commented Oct 24, 2020

Copy link
Copy Markdown

Ciphertext is not playfair if is contains a repeated digraph (AA, BB, CC, etc.)

// TODO: Ciphertext is not playfair if is contains a repeated digraph (AA, BB, CC, etc.)
// TODO: Ciphertext is not playfair if is contains more than 25 distinct letters.
// if (observed.size() > 25) {
// return 0.;
// }


This comment was generated by todo based on a TODO comment in ca59031 in #13. cc @RotationMatrix.

@todo

todo Bot commented Oct 24, 2020

Copy link
Copy Markdown

Ciphertext is not playfair if is contains more than 25 distinct letters.

// TODO: Ciphertext is not playfair if is contains more than 25 distinct letters.
// if (observed.size() > 25) {
// return 0.;
// }
// For now, we can ignore ciphertext with non-Latin characters.


This comment was generated by todo based on a TODO comment in ca59031 in #13. cc @RotationMatrix.

@todo

todo Bot commented Oct 24, 2020

Copy link
Copy Markdown

Use ciphertext to guess the 26th letter.

// TODO: Use ciphertext to guess the 26th letter.
std::vector<char_t> alphabet {
'a', 'b', 'c', 'd', 'e',
'f', 'g', 'h', 'i', 'k',
'l', 'm', 'n', 'o', 'p',
'q', 'r', 's', 't', 'u',


This comment was generated by todo based on a TODO comment in ca59031 in #13. cc @RotationMatrix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant