I am a final year student currently doing my project, the title is "Mitigating man in the middle attacks using ssl+symmetric key algorithm". I would like to create my own encryption algorithm. I need to know that could I write it in C, and how to generate an ssl key and to write an encryption algorithm and then to combine them both?

closed as unclear what you're asking by schroeder, Lucas Kauffman, Stephane, M'vy, Mark Mar 4 '15 at 9:03

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Why do you want to write your own? There are so many good ones already written (and verified). – schroeder Mar 4 '15 at 7:25
  • I'm not sure that you have done much research on your own for this question. Of course encryption algorithms can be written in C - so many existing ones already have libraries in C. – schroeder Mar 4 '15 at 7:28
  • Dave, is that you? – Lucas Kauffman Mar 4 '15 at 7:39
  • actually i would like to do some creativity,by creating my own concept i could learn a lot and i wanna do my project with my own knowlg.... help me on this – vishnuganth Mar 4 '15 at 7:41
  • Then, sure, you have your answer. You can write an encryption algorithm in C. I'm thinking, though, that adding the burden of designing your own algorithm might push back the time it will take to finish your main project. – schroeder Mar 4 '15 at 7:43

It is possible to add a symmetric crypto algorithm to OpenSSL. There is an example algorithm called GOST included in modern OpenSSL distributions; this page talks a tiny bit about integrating it from a separate package, which would be a good first step for you if you want to learn how to integrate your own algorithm.

That being said, while this would be a useful and interesting learning tool, never implement your own crypto algorithm for actual secure use.

Not the answer you're looking for? Browse other questions tagged or ask your own question.