Programming :: Use Cryptographics Techniques In C Program?
Jun 20, 2010
i have a simple client server program in which different paramters are asked by client. i want to use cryptographic techniques like DES, AES, RSAbut i do not know how and where to use.... i m doing socket programing first time even programing in linux. so i do not know linux functions and libraries and their usage.
i have a simple client and sever program in C language. in which client is requesting some parameters( like system up time, memory, no of process etc) form server and server send this information to client.now i want to use DES, AES.RSA. BLOW FISH algorithm to this communication to make it secure. actually i have to compare performance parameters of these cryptographic techniques.but i don't know how to use SSL libraries as SSL library support these cryptographic techniques. but i have no idea how it will work for me
I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html
im trying to build a simple program for my C programming class, this is the source code
#include <stdio.h> int main() { int length, width, length, height, area, perimeter; perimeter = width + length + height; area = width * length + heigth;
[Code]...
i dont see any error (you might)but every time i run it it runs but after it asks me to input for the width i do it but it doesn't take me to the length, it just stays blank until i input another value in the same place for the width, it asks me for 4 inputs in total i don;t know why, and after i run it different times it gives me different values for the perimeter and are. how can I fix this?
I found some interesting behavior when discussing the pow function from Math.h with someone. I am well aware of the need to compile with the -lm flag, but to my surprise this actually isn't necessary if the arguments to the pow function are literals. For example, this program compiles in gcc without using -lm:
Code:
#include <stdio.h> #include <math.h> int main()
[code]....
If I try to change the call to any of these:
Code:
double bCubed = pow(2.0, e);
Code:
double bCubed = pow(b, 3.0);
Code:
double bCubed = pow(b, e);
Then the -lm option is required or else it can't compile. So does anyone know why it's necessary to use -lm when the argument(s) is/are variable(s) but it works fine if both arguments are literal values? As a side note, any of the above compile with g++ however. Also, if it helps, this is the version of gcc I'm using:
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
This doesn't happen on my Mac however that is running: i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5484)
With what functions i can write my program in /etc/init.d with c++ to start every time the computer starts ? (like in windows with RegOpenKey,RegSetValueEx..............) ?
language:cOs: ubuntuI have googled for a c program to get cpu utilization factor from 2 days.We can get it through "top", "who" commands..But I hav not found any API or a program.
Am new to this community and this is my first post. am doing a project where i have to develop a wireless ad hoc routing protocol. I have just begun working on the project. I did not know where to start, so started off with a simple chat program using TCP and thought of making the modifications to it later on. But I do have a prob even i running that!
Am not getting the messages in a synchronized manner. The prog is running fine, but the messages that i type from the server are not reaching the client at all, and at times some garbage values are getting printed(When the strcmp()fn returns 1, "connection terminated" gets printed timely in both the sides. this is the oly situation where i do not get garbage values.) am using VC++ 6.0 here.I have been breaking my head for the past 3-4 days for this simple issue. any response to this would be of great help.
I'm new to programming under linux (not new to programming). Before that I have written c++ codes in Visual Studio under windows for some years. I read some tutorials and learned editing codes with vim and compile codes with g++ or make tool. And I tried gdb.
But I think compared to my coding experience in Visual Studio, these steps are very ineffective. With VS, after I wrote codes, I just press ctrl+f7 to compile and ctrl+f5 to run the codes. If I want to debug, press f5, and I can see every variable in a 'watch' window.
Under linux, after I write codes, I need to quit vim, type make to compile. If I have some mistakes, I have to remember the line numbers and re-open vim to check the errors. And I think debugging with gdb is so hard.
I think as a newbie to programming under linux, maybe I haven't find the right tools. Or programming under linux is just so hard so a programmer who can overcame these could be strong enough to do programming without some IDE tools?
I want to make alarm(buzzer) and Lamp(led) to work from infrared sensor output via usb.When ir sensor detect motion it will make the alarm&lamp on. Then also sending mail. Im using pic 18f2550-1/sp(usb Fsio from km2.net).But i dont know how to start the program.
My Fedora 14 have installed gcc-4.5.1-4.fc14.x86_64,qt-4.7.1-5.fc14.x86_64, I don't know how to use g++ to compile QT program. Do I need to set PATH or something else?
I have a program called "Device Manager" to manange usb tokens for sending and recieving multiple data to/from them using shared memory method.Here is a piece of "Device Manager" code:
I'm trying to build a spi program using c++. I'm able to perform half-duplex transfers using the read/write functions, it works perfectly. Now I need to perform a full-duplex transfer, but I'm facing some problems. When I try to receive more than one byte, the slave returns to me only one byte.Ex: I send: FF FF FF FF FF The slave must return: 03 02 00 13 04 But what is happening is:
i am not able to compile my test program which uses gtkmozembed.As i am very new to this, i dont know which are the packages to be installed and how to compile
I need to create a C/C++ program in Linux that succeeds in detecting how many tcp-sockets and what tcp-sockets are created by the other processes in the system in a particular time interval (e.g., the interval time this application is running in). Then, I'd need to get some information like local/remote port number and local/remote ip address of each of these sockets.
I finished a program that connects to a remote server and does some stuff there for a while. What I want to do is to run several instances of the program to have different connections at the same time, and to be able to manage those processes automatically (for example, if the connection stops, detect it and reconect).
I guess I will have to use the pid of the processes and handle them somehow but I dont really know what to do because I haven't used c++ in a while and I never went that deep. All this will be running in suse, debian and/or yellowdog distros Maybe there's a tutorial or you guys know some tool that i can use,
I'm just starting out with bash scripting (yesterday, really). I want to add a file to each user's home directory, pretty simple really, and send it out via our Apple Remote Desktop system to our Macs. Here is my script: Code: #!/bin/bash
for i in $(ls -d /Users/*) doif [ -e $i/.tcshrc ] thenecho "$i/.tcshrc exists!"elseecho "$i/.tcshrc does not exist"
I wrote a bash script a few months ago and now I want to convert it to a C program. However, i used awk a lot in my script, and I don't know what to use in place of awk. The awk calls are simple, like string splitting and math, but I don't know of any replacement for the string splitting function. Are there any C libraries that include some sort of string splitting function?
my instructor gave me a project in c programming language, the probelem i don't have a c program combiler and i don't have a unix os on my computer, and my knowledge in c program is soo weak i took it years ago, i have this code but it does't compile on Dev-C++ on Windows OS, so if you just help me out with this program:
I don't have the IP address & Port of the server but I know the hostname (URL) to establish a connection.How can I use it to get connected to the particular host?