How can I create an encryption program? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I create an encryption program?

I want to write an encryption program which can encrypt sentences using Caesar Code

17th Jun 2017, 5:30 AM
Woody Woodpecker
Woody Woodpecker - avatar
1 Answer
0
if im not mistaken the Caesar cipher was just adding numbers to letters so like a was j when added 12 or whatever and this was applied to all letters. so hello world was abccd edfcg or somethinf id assume you have an encrypt and decrypt functions maybe a global constant in which the letters are shifted by.... run the string through the encrypt then reverse it in the decrypt im sure there are Hundreds of ways you could complete this. hope this helps
18th Jun 2017, 5:53 AM
Michael Szczepanski
Michael Szczepanski - avatar