+ 2

How do I use c++ to make my own cypher?

I want to make a cypher to use with my friend but I want to know the best way to go about it because I am new to writing code. Any help would be appreciated and thank you in advance!

10th Feb 2017, 7:37 AM
Mia Galloway
Mia Galloway - avatar
8 Answers
+ 8
@Mia Check out my code (Rail fence cipher) Only encryption part was coded though. If you want to know about rail fence just Google it. :D
10th Feb 2017, 12:22 PM
Mr.Robot
Mr.Robot - avatar
+ 7
@Mia You may look into my codes on String Encryption/Decryption. The algorithm is of the simplest type, so you might want to borrow the idea but create a more complex algorithm.
10th Feb 2017, 10:13 AM
Hatsy Rei
Hatsy Rei - avatar
28th Jan 2018, 4:20 AM
ASIF BILAKHIYA
ASIF BILAKHIYA - avatar
+ 6
Actually , the cipher text would be looks like messy :D so that its called cipher text. and BTW yes you can encrypt twice a string but think of the decryption side too. @Mia
12th Feb 2017, 3:55 AM
Mr.Robot
Mr.Robot - avatar
+ 3
Learn about cyphers like Caesar or RSA. Read about bit shifting operators. Once you learn that you can kinda mix your knowledge to create really good cypher ^^
10th Feb 2017, 8:32 AM
Jakub Stasiak
Jakub Stasiak - avatar
+ 2
The cipher itself is not dependant on the programming language. Think about what you want to do. make an algorithm about it. Coding that will be simplier.
10th Feb 2017, 9:01 AM
Norbivar
Norbivar - avatar
0
I have another question about the cypher. I have an idea on how to write it (going with strings) but can I make the code encrypt a message one way and then make it take the encryption and encrypt that one as well without it getting too messy?
11th Feb 2017, 6:16 PM
Mia Galloway
Mia Galloway - avatar