C# - Encrypt Or Secure The JSON Data When Needed?

Sep 2, 2010

I'm just starting to really get into JSON as a tool for my sites. I was showing my friend how I am calling a WS and returning the data, and he asked me about security of passing JSON data to and from a web service as he saw the data from the "POST" (via Firebug). Many of our public facing sites deal with member information and contain PHI.

Can I encrypt the JSON data and then unencrypt it? Is that a good way to go about it to ensure a layer of protection? Or is there another "better/right" way of doing it? Or are his concerns unfounded? how to encrypt or secure the JSON data when needed? Just trying to gather as much knowledge as possible before I go down a path that won't work for the company.

View 4 Replies


ADVERTISEMENT

Parsing Data In Silverlight - Ensure The Data Is Secure?

Sep 7, 2010

I have a design question about parsing data in Silverlight. I need to allow my users to validate their csv data (they paste ten rows into a textblock), but I am not sure if I should attempt to do it on the client side where I don't have access to the textfileparser class or send the data to a webservice for validation. If I send it to a webservice how do I ensure the data is secure?

View 1 Replies

Twitter Json - Unable To Convert To Jobject Or Jarray Using Json.net / Javascriptserializer?

May 9, 2012

I am been stuck on this for 3 days now...I have been accessing the twitter api to pull a user_timeline for a list of users and the json that comes back is impossible to work with. I tried to deserialize it using javascriptserializer and get an error:invalid object passed in , ':' or '}'

Now this is frustrating since I expect the json being returned to be error free. Then I tried json.net and split the posts using string.split and tried to convert each post to Jobject or jarray. for Jarray I get

'unexpected end of content while loading jArray

[Code]...

Now I have formatted the code here and not pasted the whole file but it does look like valid json to me and I do not alter anything after receiving the stream from the twitter api. Can someone please point me in the right direction? I really need to get this stuff parsed?

View 1 Replies

JSON.NET Deserialize - Next JSON String - Returns Always An Empty Result

Feb 21, 2011

I'm strugling the whole day with the next JSON string

{
"0":{"link":"afbeeldingenplaatje1.jpg"},
"1":{"link":"afbeeldingenplaatje2.jpg"},
"2":{"link":"afbeeldingenplaatje3.jpg"}
}

How can i deserialize this? What's wrong with the next code (vb.net)

Public Class DataString
Private m_link As String
Public Property link() As String
Get

[CODE]...

It returns always an empty result.

View 1 Replies

Receiving Json And Send Back Json On Server-side?

Jul 28, 2011

how to receive and send back json. Hope someone can help me on this. I understand by examples.

On my clientside, I am sending a ajax json string "name":"theName" to the server side and would like the server side to return a string saying "welcome &name ".

Client-side code
<!DOCTYPE html>
<html>

[Code]....

View 2 Replies

DB/Reporting :: Secure Data From DBA?

Nov 14, 2011

I'm developing a VB.Net and SQL Server 2005 Express application.Q: How to encrypt string values in the database to secure them from the one using my software and from DBAs (people who have access to the DB Server)? Here is what I tried:First, I used a Symmetric Encryption provided by the .Net Framework. But I noticed that I could not make partial searches (LIKE keyword). So, this is not working.

Then, I used a logic similar to the ROT13 to hide text. Although this logic works fine from VB.Net, once data has been stored in the database, the logic fails to decrypt data correctly. After some tries, I thought that the reason the logic failed was the Collation of the database (I do not know much about Collation topic).So, the first way doesn't allow partial searches, and the second way is not secure and also does not work because of the Collation or maybe another reason.I want to encrypt data. I've successfully hidden the schema by giving meaningless names to tables and columns.

View 5 Replies

Retrieving Secure Web Data

May 2, 2010

I am interested in making a simple budget program that retrieves current transactions from my bank account and categorizes them appropriately. Is the proper way to do this:

1)Automatically log into the website

2)Read and parse the data

3)Place in correct category?

Is there anything special I would need to do when handling the login/password or should I just do this manually?I'm assuming that is how popular prgrams like Quicken do it.

View 1 Replies

Deserializing JSON Into Byrefrence ParametrizedConstructor Object With Json?

Nov 12, 2010

Below is my JSON formated String

{"AliasName": "ysiCountryInfo", "DataClass": {"Description":"United States 111","Code":"usa","WriteOffTaxPointAdjustment":0,"IndexationRounding":6}}
I would like to deserialize object into below class

[code].....

View 1 Replies

Secure Program Data Encryption?

Sep 25, 2011

What would be the best way of storing data securely away from users. What I have is a stack of files that get downloaded by the program, at the moment they COME encrypted, and stored in a temp location. Now where would be the be place to store them, and how would I store them? The program reads normal unencrypted files but in order for me to open them at the moment I nee to decrypt them in the temp folder and open them from there.This is bad because anyone could find the temp folder and simply copy out all the unencrypted files.Opening the files and then decrypting the bytearray is out of the question because the program only takes a filename as a option.

View 2 Replies

Convert JSON String To JSON Object?

Jan 18, 2012

I have a JSON response from a web service that I need to be converted to an object then to an array. My response is similar to the one below:

{"status":{"error":"NO","code":"200","description":"none","message":"Request ok"},"geolocation":{"lat":"38.89515","lng":"-77.0310"},"stations":[{"country":"United States","regPrice":"0.00","midPrice":"0.00","prePrice":"0.00","streetAddress":"1401, I St[code]....

I am doing this is VB.NET within a console for now. Basically I am trying to create a simple way to test my API calls and output the information. What I am trying to accomplish is having to loop through the JSON array and list the stations.

View 3 Replies

.net - Invalid JSON Data

Feb 7, 2011

I have the following jquery which is invalid:

{
"id": 12,
"heading": "heading goes here 3",
"content": "<p><span style="color: #ff0000;">content</span> <u><strong>goes </strong></u><span style="color: #ffffff;"><span style="background-color: #ff0000;">here</span></span> 3.</p>"
}

I am generating this with asp.net (vb.net) from data stored in a database. I think I need to somehow escape the double quotes within the content section of the json data. How do I do this?

View 2 Replies

Asp.net - Create JSON Data With .NET?

Jun 23, 2011

At the moment, I am building json data as follows:

<%@ Page Language="VB" Debug="True" EnableViewState="false" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>

[Code].....

Is this the preferred method of creating JSON data using .NET?

I think I am supposed to use asmx web services with arrays converted to json? But all the examples I have seen are in C#.

View 5 Replies

JSON POST Data Is Empty

May 5, 2011

I have a Customer JSON object created which has value as below:[code]I need to get this data in the Handlers/CustomerHandler.ashx to do some DB operations.[code]

View 3 Replies

.net - Passing Data To ASP.NET Webservice Using JSON?

Jun 22, 2010

I have successfully returned data from a ASP.Net webservice in JSON format (using a service method that required no parameters) but have struggled with making a webservice call that requires a parameter.

Webservice:

[Code]...

View 1 Replies

Pass Json Data In A Particular Format

Oct 8, 2010

I have to pass my Json data in a particular format. My app is coded in vb. The following is my code :

[Code]...

View 1 Replies

Data To Json String And Send It To A Specific URL

May 3, 2011

this is the JSON string the data is required in to be sent using a given URL.[code]I am using VB.net and i need to create this string using VB.net. I tried using namevaluecollection and doing a POST. I also tried making a string and send data using GET. Both failed. how can i do this?

View 2 Replies

How To Send Back Data From A JSON Request

Mar 25, 2011

I have an existing WSDL which returns information to remote devices using SOAP. However, I'm writing a new app with Android which doesn't support SOAP so I can't use the existing WSDL and have had to code a new app which looks for a querystring from the Android app and returns the data in a JSON packet. I've coded the module which receives the data okay but I'm unsure how to send the data back in JSON forma

View 1 Replies

Parsing JSON Data Into List Of Objects?

Aug 17, 2011

I'm new at JSON and i am currently struggling with a problem parsing JSON data in a list of objects.The data that i am trying to parse is generated by the facebook graph api, and looks like this :

{
"100001621071794": {
"id": "100001621071794",
"name": "TEST1",[code].....

I know that this is not an array, because it is missing '[' and ']'. But when i replace the '{' and '}' with '[' and ']' i'm getting an error because of an invlaid matrix.

View 1 Replies

Encrypt Data And Put It On A Txt File?

Apr 23, 2009

I made a program that encrypts data and puts it on a txt file. There are two parts of information that need to be "linked" to the other. Say its Person 1, then Person 1 gender, they need to be placed together. Each encrypted piece of seperated by a ";". I have it read the file and place the information on a Rich Text Box. How can I read all the encrypted info and stop at ";" then place that into a variable then read the next bit? I did this a while back but I used StreamReader/StreamWrite and can't remember how I did it. Right now it reads through the open file dialog and writes it to the Text Box with this command writetext.LoadFile(sFilePath, RichTextBoxStreamType.PlainText)

View 4 Replies

Encrypt Data In Web.config?

Apr 24, 2009

I have the following line in my web.config

<appSettings>
<add key="AdminPassword" value="ASDF1234" />
</appSettings>

How can I encrypt it?

View 2 Replies

Encrypt The Data That Is Requested/sent?

Jul 13, 2011

how I can Encrypt the data that is requested/sent? I wrote an application that connects to MySQL to INSERT/UPDATE/READ information from/to. The application also connects to a website of mine. I have obfuscated the codes so that people can not simply de-compile it to see my information. However I, or anyone, can simple use Wireshark or Fiddler to see information like...

How can I encrypt that so i can at least feel a bit safer... the attacker can also use replay attack on my website until they get into a user's account...

View 4 Replies

Convert JSON To Array OR JSON To XML?

Jul 17, 2011

How can I convert a JSON string to an array OR a JSON string to XML in VB.NET? I know how to do this in C#, as I have read dozens of articles on it, however, I am unable to figure out how to achieve the same result in VB.NET.

I'm using the System.Web.Script namespace via System.Web.Extensions.dll (from Microsoft).

I'm willing to use an additional DLL file if needed.

View 1 Replies

Using JSON.NET To Parse JSON Generated Through PHP?

Mar 2, 2010

I'm sure this has been asked before but I'm not finding quite the information I'm needing so I thought I'd post this.

I've written a PHP script that returns a simple JSON object that looks like this:

{"status":"success","level":"admin"}

I'm doing a standard web request that submits the required data to the script over the internet and that's working fine.

Now, I want to use JSON.NET to pull out the individual variables so I can know what the values of "status" and "level" are. The problem is, I have no idea where to start.

I'm doing this in VB.NET (on the .NET Compact Framework).

View 1 Replies

Asp.net - Dealing With Data Returned By A Web Method As JSON With JQuery?

Jan 13, 2012

[URL] Using this I have managed to use Server Side Web Methods to perform actions with AJAX.In most instances, I just need it to do stuff (save things to a database for example) so don't need to do anything with the response, but now I've come across a situation where I do, and I can't work it out!The Web Method returns a JSON object, which looks like this:

{"d":"[{"validDetails":"True","lateAlert":"","LoginResponse":"Logging in Jamie at 16:53 please wait"}]"}

This is the output shown from Firebug. I am not sure what the 's are, but bear with it...The AJAX call and attempt at outputting this response is:

$("form").on("submit", function () {
var LogonObject = new Object;
LogonObject.password = $('#password').val();

[code]....

And several other variations from info I have found on Google and SO, but it seems to treat the results variable as a string, not an array, and the output I get on the alerts is each individual character, ie;

[, {, ", v, a, l, i, d, D... etc

So I wondered if results needed to be converted to JSON again (though I don't know why) so I tried

results = $.parseJSON(data.d)

But that didn't work either.

EDIT, the code which generates the response (missing out tons of logic, but this is the important bit):

Public Class OutputObject
Public validDetails, lateAlert, LoginResponse As String 'content of JSON output'
End Class

[code].....

View 2 Replies

Read JSON Data From A Server To A Dataset Object?

May 18, 2009

I am trying to read JSON data from a server to a dataset object, any idea on how this can be done. I have tried using the DataContractJsonSerializer class but it only seems to work for objects.

JSON Data
{
"firstName": "John",
"lastName": "Smith",

[code]....

The code above works to an object, but I want to parse the JSON data to a dataset object.

View 2 Replies

Encrypt / Decrypt Stream Of Data?

Aug 23, 2011

What are the best way to encrypt and decrypt stream of data ?I would like that my program read a file.. and unencrypt it in memory then when it save it.. it encrpyt the stream and save it.

View 1 Replies

Encrypt Database And Using Data In Program

Mar 29, 2010

My database is going to contain personal data. (such as contact details, names, password, etc...) This is what I need:

1) I need to encrypt the database

2) However, i will also need to be able to use it in my vb.net program.

To expand on my second point, i will need to be able to display the data (non-encrypted, obviously), and i will need to be able to compare user inputted data to the database data (like, i will be using datasets, so, IF txtUsername.text = ds.tables(0) ...)

[Code]...

View 12 Replies

Insert Data Into An Object And Have It Spit Out A Json Formatted String?

Mar 28, 2011

I am looking for a vb.net library where I can insert data into an object and have it spit out a json formatted string, and also take the string in again to rebuild the object.I am not that concerned with mapping it to preexisting objects.I have searched around and every single library I've found either can't read the strings in again, interprets them as one long string instead of breaking them up into parts, or fails to work entirely (asp.net can't even find any public members).

View 1 Replies

Encrypt Some Basic Data Being Sent From Server To Client?

Oct 11, 2009

I need to encrypt some basic data being sent from server to client.

I was going to open a file in bytes, convert it to chrs (Modify odd numbers by adding 2 and even numbers by adding 3) then use Base 32 (Triacontakaidecimal) or Base 16 (although base 16 will occupy twice the space). Convert the data back to bytes and after do the same with the decryptor.

About using base 32, is there some sort of class in vb.net or maybe an api?

View 3 Replies

.net - Using Rjindael And RSA To Encrypt Data Stored In QR Code In Visual?

Jun 23, 2011

I'm wanting to encrypt some data (hopefully under five hundred bytes' worth) and store it in a QR code. Originally I wanted to use RSA, so the data would be signed with User A's private key and User B's public key, but unfortunately, VB.NET doesn't like encrypting that much data. I've read that I should use Rjindael to encrypt the actual data, and then use RSA to encrypt the key used by Rjindael. However, I'm not having much luck being able to search the web for some kind of tutorial or something.

Also, if I was wanting to store this on a QR code, wouldn't I have to store both the encrypted data and the encrypted key used by Rjindael? Do you think this would all fit? I may be able to use version 40 on medium error correction [URl].. it stores 18,672 "data bits"), but I would prefer to use a lower version (that is, smaller) if at all possible.Generating the QR code won't be the problem (I know there's a .NET library for that), I'm just curious about getting the data encrypted to begin with.

View 1 Replies







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