473,395 Members | 1,726 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,395 software developers and data experts.

Encrypting data

Visual Studio 2005, dotnet, c#. Microsoft SQL Server. Windows XP forms
application.

Temporarily, for my database application, I have been storing the various
elements of database connection items like datasource,password,userid as
plain strings in the registry.
I'd now like to make these secure against people reading them.
I thought of encrypting/decrypting each string when i write to the registry
but I wouldnt know where to find a useable algorithm.
What's the easiest, secure way to store these values please?

Also, I download images from the database and cache them on each local
machine in a data directory so there's no bandwidth hogging.
At the moment they sit there as .jpg,*.bmp files and can be viewed just by
opening them.
What would be a sensible way of encrypting these?

thanks :)
Apr 25 '07 #1
2 2248
SeeSharp Bint wrote:
Visual Studio 2005, dotnet, c#. Microsoft SQL Server. Windows XP forms
application.

Temporarily, for my database application, I have been storing the various
elements of database connection items like datasource,password,userid as
plain strings in the registry.
I'd now like to make these secure against people reading them.
I thought of encrypting/decrypting each string when i write to the registry
but I wouldnt know where to find a useable algorithm.
What's the easiest, secure way to store these values please?

Also, I download images from the database and cache them on each local
machine in a data directory so there's no bandwidth hogging.
At the moment they sit there as .jpg,*.bmp files and can be viewed just by
opening them.
What would be a sensible way of encrypting these?
There is no way of encrypting this data usefully. You have nowhere safe
you can store the key so that the user cannot just decrypt it.

Alun Harford
Apr 25 '07 #2
On Wed, 25 Apr 2007 16:13:34 +0100, "SeeSharp Bint"
<Se******@nospam.comwrote:
>Visual Studio 2005, dotnet, c#. Microsoft SQL Server. Windows XP forms
application.

Temporarily, for my database application, I have been storing the various
elements of database connection items like datasource,password,userid as
plain strings in the registry.
I'd now like to make these secure against people reading them.
How secure and against what people? ROT-13 or Base64 are far from
secure but can prevent casual browsing. System.Security.SecureString
might be of use to you as well. For more than that use AES (=
Rijndael) in CBC or CTR mode.
>I thought of encrypting/decrypting each string when i write to the registry
but I wouldnt know where to find a useable algorithm.
What's the easiest, secure way to store these values please?
Either SecureString or one of the built-in encryption methods, AES for
preference. You may need Base-64 to avoid problems with non-printing
characters if you use AES.
>
Also, I download images from the database and cache them on each local
machine in a data directory so there's no bandwidth hogging.
At the moment they sit there as .jpg,*.bmp files and can be viewed just by
opening them.
What would be a sensible way of encrypting these?
AES again, in either CBC or CTR mode.

rossum
>
thanks :)
Apr 25 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: steve | last post by:
Hi, I know there are a few free and paid php source code encryption scripts around. Has anyone used one, and any feedback? I am interested in encrypting source that is placed on a remote host....
12
by: kimi | last post by:
Hello, I am running Microsoft SQL Server 2000 on a Windows 2000 Sever. I have been working with SQL Server, Building ASp WebSites for many years now. I am by no means an expert - nor have I had...
9
by: Brian P. Hammer | last post by:
All - I have an app that saves data to a xml file via a dataset. Our company stores some data in various xml files that is now considered a risk under its security policy. What's the best way to...
0
by: everpro | last post by:
Hello, I am trying to determine how to figure out the following: 1) If our DB2 Connect Gateway is encrypting userids, passwords AND data or not. 2) If not, how do I enable encryption. ...
1
by: jimfortune | last post by:
This idea is still in the process of formulation. I'm considering the idea of storing encrypted data in memo fields. Since the data is for internal use only I don't think the legal limits on...
2
by: Derrick | last post by:
Hi All, I wrote an app that reads text and/or xml data, will call it our "content". We want to secure that content so that our app will know if someone has modified it, or has produced their own...
7
by: Richard L Rosenheim | last post by:
Anyone care to express their two cents over pros and cons of encrypting the data being transmitted (within the SOAP package) versus just utilizing a HTTPS connection? Richard Rosenheim
2
by: Parrot | last post by:
I cannot get an answer as to why my session state no longer remains active between webpages after working for 2 years. So I want to try to pass data thru query strings in my url. I tried to use...
3
by: Tery | last post by:
I'm trying to implement the Handango.com HTTP POST registration method. The instructions are here: http://www.handango.com/marketing/developerTeam/HTTP_Post_Reg_Model_How2.doc I'm stuck on how...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.