avastmick / cryptographon

A set of code games to show the principles of crytography (and coding)
0 stars 0 forks source link

What about case sensitivity? #7

Open Richomuffin opened 6 years ago

Richomuffin commented 6 years ago

The example clip shows the message coming back in lower case, when it was encoded with Sentence Case?

avastmick commented 6 years ago

This is correct, and intentional. The cipher-one code does not retain case in the encode/decode cycle. Please note, many classical ciphers are case insensitive.

The objective of the repo is to walk through from a starting point of a simple substitution cipher (as created by a 9-year-old) through a number of examples that fix issues with the implementation. cipher-one has key limitations as per the original cipher, these are alleviated in cipher-two, and further still in cipher-three. The latter fixes the case sensitivity issue.

Hope that makes sense.

If you are interested in contributing, that would be great. Documentation or code appreciated.

Richomuffin commented 6 years ago

I can't even wind you up anymore. You have forgotten so much from your time in Wellington. ☺ I was just wondering how life was treating you in Shanghai and if you had finished the book. Nice idea with the open source literature btw. Quite smart!

Rich.

On Fri, 20 Apr 2018 15:42 avastmick notifications@github.com wrote:

This is correct, and intentional. The cipher-one code does not retain case in the encode/decode cycle. Please note, many classical ciphers are case insensitive.

The objective of the repo is to walk through from a starting point of a simple substitution cipher (as created by a 9-year-old) through a number of examples that fix issues with the implementation. cipher-one has key limitations as per the original cipher, these are alleviated in cipher-two, and further still in cipher-three. The latter fixes the case sensitivity issue.

Hope that makes sense.

If you are interested in contributing, that would be great. Documentation or code appreciated.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/avastmick/cryptographon/issues/7#issuecomment-382964281, or mute the thread https://github.com/notifications/unsubscribe-auth/ASoy68nxbeDDb9B-4fRSUrOnM5whjwKlks5tqVkqgaJpZM4Tc0F6 .

avastmick commented 6 years ago

Ha ha! Right, I know two Richs in Welly, both equally capable of sucking me into the same (elaborate) gag. I'll put chips on Bremford, because cat.