C :: Encryption Of Data To Be Sent From Mobile To Server

Mar 8, 2013

I just started to work on a project which is 'Body Area Network'.

What I need to do is to take data from body with some sensor nodes and send it to mobile which would further send the data to a remote server, and I need to add some security (encryption/decryption) on the data.

So I want to know how to send data from mobile after encrypting it to the server and then decrypt it back(on server side).

View 6 Replies


ADVERTISEMENT

C# :: Data Source Does Not Support Server-side Data Paging

Apr 20, 2014

Been trying to configure the GridView to display ony 4 rows of data at a time. I thought it wasn't working because I forgot to set AllowPaging to True, but after I did that, I just get the error of

The data source does not support server-side data paging.

Source Error:
Line 66: titlesGridView.DataBind(); // displays query results

Here is my Books.aspx.cs code:

// Fig. 29.11: Books.aspx.cs
// Code-behind file for the password-protected Books page.
using System;
using System.Data.Entity;
using System.Linq;
namespace Bug2Bug.ProtectedContent {
public partial class Books : System.Web.UI.Page {

[Code] ....

Am I missing anything or doing something wrong thats not causing it to page & only display 4 titles at a time?

View 2 Replies View Related

C# :: Responding To A Request Made From Mobile App

Feb 8, 2015

I want to know how to respond to a request made by a mobile application (preferably Android) through a desktop software. So for example if there is a button on the mobile app named 'do something and a user clicks it, I want the desktop software to respond to that request and 'do something

So what I was thinking was to upload a file to a server when the button on the app is clicked and add a timer to the desktop software to connect to the server and read the file and respond accordingly.

Is this how it is usually done or am I going about this the wrong way? Im developing the app in C# (Xamarin) and the desktop software in C# as well.

View 6 Replies View Related

C++ :: Retrieve Data / Files From A Server?

Feb 25, 2013

I was wondering if i had to say simply retrieve data from a server whether it be simple plain text for variables or download whole files (FTP), what would be the best method for this? I would imagine there is a pretty big difference between retrieving text and downloading files but im just wondering what the best thing would be to research for both.

View 3 Replies View Related

C/C++ :: Server Receives Corrupted Data

Feb 27, 2014

I have a problem with this work. It is that when the server send some data to the client it send them correctly but when they arrive to the client all the info are changed and i don't know why, because i print them before the send and they are right, but after they arrive to the client the data doesn't be the same.

here it is the server and client's code. In the code there are some italian words, but there are only constant, so there is a real problem to understand the code.

Server

#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdbool.h>
#define FLUSH while(getchar()!='

[code]....

the problem is in the line 136 of the server and on the line 203 of the client

View 7 Replies View Related

C# :: Cannot Send Data From Client To Server

Oct 26, 2014

i am making a client server application but the problem is that i cannot send data from CLIENT to SERVER , but i can receive data from SERVER to CLIENT ... Below is mt client and Server code and i also have attached both client and server files...

CLIENT CODE:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;
namespace asynclient {

[code]....

View 3 Replies View Related

C++ :: Client Sends A Request To Server And Get Some Data

Apr 28, 2014

I want to write a little c++ program that sends a request to a server an get some data. I found the C++ Rest-SDK and decided to use it. I searched on different websites for code-examples but many of them doesn't work an shows syntax errors. What i got now is that code but the client.request method is skipped. The program never jumps in.

#include <Windows.h>
#include <iostream>
#include <sstream>
#include <string>
#include "cpprest/containerstream.h"
#include "cpprest/filestream.h"

[Code] .....

View 1 Replies View Related

C Sharp :: Saving Data In SQL Server Parameter Error Showing

Jun 1, 2013

I have an application with general customer detail.

It has TextBox and radio button.

First I have used if statement then code but on first step is working fine then error is showing.

try
{
if (textBox1.Text == "")
{

[Code].....

View 5 Replies View Related

C Sharp :: Server Sending Data Then Client Receive And Store In Database Table In Windows Service

Dec 22, 2014

When server send data then client receive that data, in C# windows services where data receive continuously (Using IP Address and port number) . This below code writing in console application . i want implement same logic in windows service side. but i want data receive continuously.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

[Code]....

Above code write in console application, same logic implementing in windows service, but i want data receiving continuously

View 3 Replies View Related

C++ :: Program To Convert Normal Text To Mobile Text

Mar 26, 2013

Program that reads in a normal text file and converts it into mobile phone text. that is if the word is 3 characters or less then ther is no changes to the word and if the word is four or more letters then remove all the vowels from the word except for vowels that are capitals.

View 5 Replies View Related

C++ :: Using XOR Encryption?

May 31, 2012

I am currently using a byte encryption in C# which gets decrypted in my C++ client.

It is XOR, but I can't get it to work. Is there anything that Im doing wrong?

I already wrote the C++ XOR in C#, which look pretty much the same.

C#

Code:

public byte[] XOR(byte[] strng, byte[] key) {
int string_len = strng.Length;
int key_length = key.Length;
int i, position;
for (i = 0; i < string_len; i++) {
position = i % key_length;

[code]....

View 14 Replies View Related

C :: Create 2 Int For FOR Loop To Do Encryption

Jun 15, 2014

what i think i need to create 2 int for the FOR loop to do the encryption but how am i to do it meaning the actual encryption itself what is that i check with?Also i think i need more than just the #include <stdio.h> library due to the file functions that i will need or is C having them built in? Also what is that about the program doing all this from DOS?

Create 2 programs with the names encrypt and decrypt that will encrypt and decrypt files respectively.The encryption and decryption will be done through a command line of DOS and the program should be as follows: encrypt file1 file2 key and decrypt file1 file2 key

Where:
file1 is the source file
file2 is the destination file
key is the word with which we encrypt/decrypt file1

So when the user executes the command encrypt f1 f2 sunnyday the program will create a file with the name f2 which will have the contents of f1 encrypted with the key sunnyday.When the user executes the command decrypt f1 f2 sunnyday the program will create a file with the name f2 which will have the contents of f1 decrypted with the key sunnyday.

If the user gives a wrong key the program will continue to decrypt file1 but since the key is wrong the results will be unexpected.Finally the program must print the corresponding error messages in case of errors for example (There is no file 1).The program is expected to work corectly with not only plain text files but executable (exe) files etc.Also The program must be fully commented.

Note: The way the encryption will work is yours to choose but it is recommended that you encrypt every letter of the file with every letter of the key with the (start to finish and begin) technique meaning that if the key has 8 letters then the first leeter of the file will be encrypted with the first letter of the key, the second letter of the file with the second of the key, ..., the ninth letter of the source file with the first letter of the key, the tenth letter of the source file with the second letter of the key etc.

View 3 Replies View Related

C++ :: AES - Encryption / Decryption With OpenSSL

Aug 9, 2013

I just want to test AES from openSSL with this 3 modes: with 128,192 and 256 key length but my decrypted text is different from my input and I dont know why. Also, when I pass a huge inputs length (lets say 1024 bytes) my program shows `core dumped`... My input is always the same but it doesnt matter, at least for now. Heres the code:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/aes.h>

int main(int argc, char **argv){

[Code] .....

View 1 Replies View Related

C++ :: Encryption Of File (Docx / PDF)

Apr 28, 2013

I have been assigned a project by my teacher to make a program in c++ which will be able to encrypt a text file, a .docx file or a pdf document !!! Encrypting a text file is easy i have already done that but how do i encrypt a docx file or a pdf file ???

View 2 Replies View Related

C/C++ :: Encryption And Decryption Program?

Mar 19, 2015

this program on how to make a encryption and decryption program of a txt file

#include "stdafx.h"
#include <iostream>
#include <string>
#include <fstream>
using namespace std;

[Code].....

View 1 Replies View Related

C/C++ :: Encryption Program Error

Aug 5, 2014

Back again with a random bug that I can't seem to track down. My error is in my main.cpp file. I get a C2248 error on line 54, there I'm doing:

t.makeEmpty(t.root)

I know why, because it's a private member...but it should have access in so far as everything is concerned. I double checked my makeEmpty code and it's good to go so far as I can tell. I can't quite iron out where the disconnect is.

V/R
Brad
main.cpp
#include <iostream>
#include <string>

[Code].....

View 4 Replies View Related

C/C++ :: AES Encryption / Decryption Of Text

Oct 29, 2013

We need an AES Encryption/Decryption program in C for college lab (Educational) purpose . So we cannot use any "aes.h" file for this . We need a C program which simulate the purpose of AES

Input : Text (e.g: Anes P.A)
key (e.g:123op)

Output : Cipher Text using AES

I look this functionality done in a website : [URL] ....

Attached Images : AES.jpg (36.4 KB)

View 1 Replies View Related

C++ :: Basic Encryption And Decryption Program

Sep 29, 2013

I am having trouble with an assignment. The assignment consists of a basic encryption and decryption program already written for me, I just have to write the encryption function. What we have to get the program to do is enter an integer and a text, and get the program to increment each letter in the text by the integer given. I did this by using a for loop and incrementing each value in the string by the integer.

However, I still can't get it to decrypt and I need the program to work with only a-z letters (if I increment each letter by 3 and I have the letter Z, it should go to Z+3 = C).

I attached the description of the attachment and below are the codes: The first file does not need to be edited.

Code:
/*******************Programming Assignment 1***************/
/****************Caesar's substitution cipher**************/
/*****************YOU MUST NOT EDIT THIS FILE**************/
/****Substitute alphabets in a string using rotation key***/
/****Leave all other characters unchanged******************/
/****Confirm correct encryption by decrypting**************/

[Code] ......

View 1 Replies View Related

C# :: Des Encryption Produces Wrong Output

Feb 14, 2012

I have the following function:

Code:
public static void Des(byte[] key, byte[] inBuf, byte[] outBuf) {
if (key.Length != 8 || inBuf.Length != 8 || outBuf.Length != 8) {
throw new Exception("Des: Buffer or key length incorrect.");
}

DESCryptoServiceProvider des = new DESCryptoServiceProvider();

[Code] ....

I do not get the expected output of

Code: { 0x88, 0xBF, 0x0D, 0xB6, 0xD7, 0x0D, 0xEE, 0x56 }

instead I get

Code: { 0xC6, 0x61, 0x8D, 0x63, 0x0B, 0x39, 0x31, 0xB0 } am I doing something wrong?

I've even tried reversing the byte order of the test data, and I don't get the right result. I've tested the same data using C++ with CryptoPP on Linux, and I get the expected result, but I'm porting this code to run on .Net, and this is my main stoppage in the process at the moment.

View 5 Replies View Related

C++ :: Basic Encryption / Decryption - While Loop

Jul 14, 2013

while(!in.eof()) {
in >> ch;
char d = int(ch) + 10;
out << d;

[Code] ....

The first while loop would be to encrypt it, and the second would decrypt it, the decrypting is not giving the original content. For example:

in = Hello
encrypt...
decrypt...
out = Hellooo

View 2 Replies View Related

C++ :: How To Encrypt TXT Document Using Caesar Encryption

Mar 1, 2013

so i need to encrypt a txt document using Caesar encryption. however i don't know how to open a txt and shift the keys into a new txt. the program has to ask the user for the number it should shift. Using arrays, if else. i also need to make a menu so i am using switch.

View 4 Replies View Related

C++ :: Text Encryption And Decryption Using MD5 Algorithm

Sep 6, 2014

How to do encrypt and decrypt the text by using md5 algorithm without using the any library? Only implement in c++ program.

View 4 Replies View Related

C# :: Creating Encryption Program Like TrueCrypt?

Feb 8, 2014

Is it possible to encrypt a folder and put it in a file container. Would I need to store the header key and other stuff my self or do the encryption methods take care of it? I am just getting into file input/output. I am just looking to make a simple console based one.

View 5 Replies View Related

C :: Encryption Code File Reading Error

Dec 3, 2013

Code:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int encrypt_data(FILE *);

[Code] ....

I am trying encrypt the file "encrypt" when I enter it I get "Error in reading file"

I think its a problem with the fgets() and scanf()...I tried both fgets out and then scanf but I get the same error.

I look in the directory and see that when I enter a file to be encrypted a blank file with a "?" at the end is created in the directory. so I try to encrypt "encrypt" it shows error then creates "encrypt?"

I then tested it by entering a random file name that does not exist

EXAMPLE

Please enter file to be encrypted: fakefilename

Error in reading file.

I look in the directory the non existent file now is listed "fakefilename"

View 1 Replies View Related

C++ ::  Simple Encryption Program Runtime Error

Jul 22, 2014

I am trying to make a simple program for encrypting a char* with the XOR operator. The code compiles and links perfectly, but I get an Access violation runtime error:

#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <string>
#include <fstream>
using namespace std;
int main(int argc, char** argv) {

[Code] .....

Text that I am inputting:

My username is memberfunction.

View 9 Replies View Related

C++ :: How To Create Simple Encryption And Decryption Program

Apr 18, 2014

Write a program to do simple encryption and decryption. Encryption basically means to convert the message into unreadable form. In this assignment, it should be done by replacing each letter of a message with a different letter of the alphabet which is three positions further in the alphabet. Then, all the letters will be reversed. Decryption is the process of converting encrypted message back into its original message. Your program should use the following shifting method.

Note: You must use array.

#include <iostream>
#include <string>
using namespace std;

[Code].....

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved