a server client application using TCP in C in linux environment, [closed] - c

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i have created a server client application using TCP in C in linux environment,and it is working very well.
I wish to improve the application by including a cryptographic algorithm into it so that the server just gets to know about who has logged in and out of the server but not about the information shared between the clients.
Any suggestions for algorithm that i should employ in my project to achieve the desired result.
I am currently looking into MD5 algorithm.

As far as I understand you want to encrypt/decrypt messages between users. If so MD5 won't do it as it is just a hash function.
https://en.wikipedia.org/wiki/MD5
Probably the best algorithm to do so would be AES:
https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
There are many implementation (including in C) on the web so you can literally copy-paste the code (mind the license ;) ).

Related

Is socket programming what I need? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
So I'm developing a 2d game using sdl1.2 on linux as a part of a college project and I need the player to be able to submit his score to know his ranking against other players who played the game aswell and I was wondering what am I going to need in order to achieve this with C, is socket programming the answer?
Thank you.
Yes, if your concern is about the communication, then socket is the only way, of course there are easy to use wrappers around socket, like zeromq etc.
The server would create a server socket and listens on it, and each client will connect to this server and then send the scores and any other data necessary to the server.
For data persistent, you can use embedded database like SQLite or leveldb etc.

Can you suggest any library to connect to internet with C? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I've been learning C for the past few weeks. I don't understand yet how to connect to internet with C. I've programmed in Python and I used the urllib in the Python stdlib to connect to internet. Is there any library that can help me connect to internet ?
Libcurl is a popular choice for making HTTP requests, which I assume is what you're interested in doing.
In pure C wirthout any library it is not possible as network access depends on the specific platform. However, the socket API is some kind of standard library which permits sending data via TCP/IP. The necessary HTTP handling, if desired, would have to be implemented on top of that.

Simple web server using C programming [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to develop a web server using c in Linux. Using that we need to start and configure services. is their any help like pseudo code or sample programs like that.
http://www.gnu.org/software/libc/manual/html_node/Server-Example.html
This is a simple multi-user web server built in C. I had to do one of these last year for a class, and I find it quite cool, though a little bit frustrating.
The Apache HTTP server, the world's most popular HTTP server, is written in C. Its documentation, and source downloads are located here

Java J2SE Code Compatibility in any OS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am in a confusion now. I am developing a java project in windows platform. but now, the problem is how can I get to know if my all codings (Java J2SE) will work in any OS? In my codings there are varies parts like serial port programming, smslib, RXTX lib, database connections (ODBC and JDBC). Can any one offer my some ideas or any solution for this?
Thank you very much.
Your code should work as long as you are not using any OS native APIs. Im afraid you might be doing so as you have mentioned your code uses things like serial port programmin, RXTX lib etc. If NOT then you are good to enjoy the Java 'write one and run anywhere' feature.

Creating and checking license numbers [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
To protect software, you can create a validation system which requires users to provide a valid license number (Often 25 letters or digits) which they have to enter with some personal information. This then gets validated (sometimes aby using a validation server, thus requiring online access) and when valid, the user can use the registered version of an application.
Now, simple question: What kinds of solutions are there which would allow developers to implement such a licensing scheme in an easy way into their applications? I could easily create my own solution but I don't want to re-invent the wheel again...
Ezirez Intellilock has a good solution and API to implement it.
Basicly you created a function of (HW ID, Registration Key) and check if it's right.
Intellilock is just a tool to help you lock the software if the license isn't there.

Resources