473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

What's the best way to easily distribute an application and encrypt/decrypt the user'

I'm working on an application that works as a remote client for integrating with corporate services. It's packaged as a downloadable Windows installer, allowing a user to install it and then configure a profile for connecting with their account(s). This information, including account passwords, will be written to a local properties file for automating transactions via a Windows service. This already works, and just fine.

However... now I want to encrypt the customer's password for storage in their properties file, and decrypt at runtime to make the remote connections. I have put together sample projects using various RSA, 3DES and certificate APIs, which work as far as they go. However, nothing seems to be exactly what i need.

This will be an "on demand" service, and there will be multiple, unpredictable, client installations, so I can't generate a unique cert for every customer who wants to install the automated plug-in. What's the best way to persist encryption in a secure way on the client side?

My most promising avenue so far has been generating a (fake for now) x509 certificate, and password-protecting it in a .PFX file. i can read in the x509 with C#, open it with the keystore password (unknown to the end user), and decrypt the customer's password for use in authentication.

It would be fairly easy to bundle the .PFX file in the installer. However, this means that every customer would have the same public/private key pair in their build. Now, no customer knows who the other customers are, and they'd have to physically get the properties file from another customer to get their encrypted password, so that's not a huge concern. But I'm still not sure that's the best solution. Ideally I'd like to be able to create a unique private key for each customer, and encrypt their information using the same public key or cert. However, that's now how client certs seem to work in C#.

What am I missing? What's the best way to easily distribute an application and encrypt/decrypt the user's profile in a secure manner?

Any help would be greatly appreciated.
Oct 22 '10 #1
2 1616
Aimee Bailey
197 Expert 100+
Why dont you just store the profiles on a dedicated SQL server, also a generic hard coded username and password for the server. That way no sensitive data is kept on the client machine.
Oct 26 '10 #2
Sfreak
64
You can try SSL encryption. I dont know how you connect to your clients... by socket or webservice/wcf servers but in both way SSL is a good solution. Also you can create your own digital signature using a cryptography algorithm (AES for example) and send it embedded on your protocol. In the SoapHeader for example in case of web services.
Oct 26 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Paul Rubin | last post by:
I've had this recurring half-baked desire for long enough that I thought I'd post about it, even though I don't have any concrete proposals and the whole idea is fraught with hazards. Basically...
1
by: Chris Spencer | last post by:
I noticed the SimpleXMLRPCServer/ServerProxy creates a new socket for remote procedure call. I've written a simple IP based authentication scheme for the Server, and I'd like to include the port in...
7
by: Sidd | last post by:
Hi, I tried finding and example of multithreaded client-serve program in python. Can any one please tell me how to write a multithreaded client-server programn in python such that 1.It can handle...
1
by: hochun | last post by:
I am trying to read non-persistent cookies that is not reading in the program coding is there any software thich can read it (just like Cookie Monster, but it can't read non-persistent cookies ) ...
2
by: Jim Hubbard | last post by:
Is it possible to have persistent connections in ASP.Net?
3
by: Randall Nortman | last post by:
I assume I'm not the first person to have encountered this, but I couldn't find anything in the FAQ or on the mailing lists recently. My apologies if this is already documented somewhere... My...
3
by: Marc Gravell | last post by:
Kind of an open question on best-practice for smart-client design. I'd really appreciate anyones views (preferably with reasoning, but I'll take what I get...). Or if anybody has any useful links...
0
by: SAL | last post by:
Has anyone worked with Persistent URLs (P.U.R.L) before, where the PURL resolution associates the PURL with the actual URL and returns that URL to the client? I have a Web App that has been...
1
rohypnol
by: rohypnol | last post by:
Hi! Is there a way to have a persistent connection between the client and the server, through which to pass data from one to the other? For example, having a webchat application that connects to...
9
by: mel | last post by:
Hi all, I need a persistent TCP connection with my web server over page reloads. This means that, even if the user goes to a different page (in my domain), I want to keep a TCP connection...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.