jlechem / RetroGaming

A repository for old school retro C++ games
Apache License 2.0
2 stars 1 forks source link

Null Cipher - Complete #2

Open jlechem opened 4 years ago

jlechem commented 4 years ago

The null cipher code needs to be completed, right now it reads a file but doesn't do any processing.

CarltonBranch commented 4 years ago

Hi, I'd like to work on this. I've read the cpp file, but it's not quite clear what exactly you'd like to have happen.

jlechem commented 4 years ago

Hi there thanks for asking, I started this and never got very far as I sort of got stuck. Looking back at the file I think what would be great is a mechanism to encrypt/decrypt some text using a null cipher. Rules for null ciphers can be every x word, every word after a punctuation mark or some other weird rule. It's all a matter of pulling the right words from the whole text. Deciding on how to implement this is where I got stuck.

Maybe a good start would be to encrypt text, but even then it could take some logic to make sure we're creating a valid sentence using the words we want to cipher. I am not familiar with any NL libraries for C++ but I'm sure they're out there and if they work well with this kind of thing I would be very open to implementing them.

As you can see I am open to exploring this and think it's incredibly interesting but has a lot of hurdles to overcome. Well at least for me since I'm not very experienced with cryptology.