-
Notifications
You must be signed in to change notification settings - Fork 52
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
Playfair encrypt error encoding "BAAAH #13
Comments
When using two online cipher calculators, the result was: CBCVBF. The two websites are: https://www.dcode.fr/playfair-cipher and https://planetcalc.com/7751/ |
This error is coming here because it is being padded with X |
I implemented it myself using X padding and it gave me: CBCVBF. |
The plaintext BAAAH is padded with X. So we split as BA AA HX. Now BA are in same row so we rightshift as CB,next AA same characters so change to AX next A=(1,0) X= (4,2) so we take (1,2) and (4,0) which is CV again for HX H=(2,1) X=(4,2) so we take (2,2) and (4,1) which is LV.Correct me if I have made a mistake here and if so please tell me the correct steps |
Got it.I had misunderstood that the repeated one's second character is replaced by X.Thanks for the help and sorry for the trouble |
You are welcome. |
We discovered that the encipher method of Playfair does not encrypt BAAAH correctly when using the key "KINGSABCDEFHLMOPQRTUVWXYZ". It returns "CBCVLW" when it should be "CBVCLW". However if I write the grid out:
BAAAH -> BAXAH -> BAXAHX -> CBVCLW
The text was updated successfully, but these errors were encountered: