C# - Store Db Passwords When Using Windows .NET Or ASP.NET Applications?

Mar 7, 2012

I have a scenario that has been troubling me for years. If you have to connect to a database or other service (like a web service) using a username and password, where would be the safest place to store this information if you are connecting through a .NET assembly? I understand that you would have to encrypt the password, but then you run into a kind of chicken-egg problem -- fine -- you can encrypt it, but then where do you put the key?In .NET, you can't hardcode the password because you can decompile .NET code.

I looked at using assembly based rights with Isolated Storage, but MS recommends against storing unencrypted secret items there because priveledged users can gain access, so again, we are moving the problem from point A to point B. So for examplem, a domain admin with no need to know about the information in a database would be able to get access because of the ability to be an admin on any workstation on the domain.You can encrypt App.Config and Web.Config, but I believe priveledges users can access the keys. I think you run into the same problem with DPAPI.

I had considered storing the passwords, encrypted in a remoted database and getting them through OS authentication, but our department prohibits the storage of passwords on database servers. I am pretty sure I am stuck and wanted confirmation.

View 3 Replies


ADVERTISEMENT

How To Store Passwords

Oct 20, 2009

I know its a very basic problem but what is the best way to store passwords and usernames in visual basic 2008? I need to be able to add them whist in runtime and I also need to be able to obviosly get the program to check wether inputted username and passwords are correct.I am VERY new to programming so please explain your answeres in dummy language

View 8 Replies

Active Directory Store Passwords?

Apr 21, 2011

Can someone tell me how Active Directory stores it's passwords for users? Is it like this answer : storing passwords in SQL Server Is it a hash and a salt or multiple hashes?

EDIT I ask because I want to mimic the way they store them for a custom authorization application I want to build. Or if someone can offer a existing framework or class that handles user authorization for a web application. If I can use asp.net membership for multiple applications using web service that would be even better.

View 2 Replies

Create An Array To Store Passwords?

Dec 11, 2009

I am building a small office application that requires users to log in dont need encryption or other sophisticated aproaches. all i need is an array of passwords that users can log in.

So If passtext.text= "test" or "test1" or test2" then

else
msgbox("Fix password")

View 9 Replies

Create A Program To Store Usernames And Passwords?

Oct 22, 2010

First off, I am a total VB noob. I want to create a program so that I can store usernames and passwords. I want to be able to search by username and pull up their password. What VB program do I need to write this? Can I just use the VB in excel?

View 9 Replies

Sql - Using Access To Store Usernames And Passwords And Opening Via VB

Sep 1, 2011

Basically i am trying to create a programme, which needs to have some authorisation.

When the application starts up, it starts straight into the login screen.

I want the Username and Password textboxes to read the database and if they match then progress to the next form but if they dont match then a message box will appear.

I also want to create groups of people so if a certain group of people log in they go to a certain form and if the another group of people log in i want them to go to a different form.

Also i want the password box to be * instead of visable text.

dbProvider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;"
dbSource = "Data Source = D:/Users.mdb"
con.ConnectionString = dbProvider & dbSource

[Code]....

View 3 Replies

Store User Passwords In Sql Server Express Database In Encrypted Form

Sep 2, 2009

I use AES encryption in my vb.net 2008 windows forms apps to ....

1. Store user passwords in sql server express database in encrypted form

2. decrypt the encrypted Sql server express connection string password on the fly when connecting to SQl Server over a vpn or direct to web based sql server database

3. decrypt the encrypted ftp site password on the fly when my application connects to my ftp site to upload client's database backups

The issue I have is that the secret key for the encryption / decryption is hard coded within the encryption/decryption functions. So anybody who decompiled my application would be able to generate the same encryption, as they would have the encryption secret key How can you hide the encryption secret key so that if anybody decompiled my app they could not reproduce the decryption function

View 1 Replies

Login Program - Add Users And Passwords Using Textbox On Windows Form

Oct 13, 2009

I am making a login form for my A2 computing work and have got that to work but i did do some of the work and now i want to know how i can add extra users and passwords using simply textbox on another windows form [Code]

View 4 Replies

Registry Program - Moving Applications From Windows 2000 To New Server Windows 2003 ?

Feb 7, 2010

I am working on moving applications from Windows 2000 to new server Windows 2003 R2(64 Bit). I noticed that there are some VB programs and config files for those programs have been placed in Windows 2000 Registry. Some other applications are using them from different servers.Why do we use registry here? How can i move these to registry in windows 2003? Can I just move these or do I have to write VB programs to place them in 2003 registry?

View 1 Replies

Communication Beetwen Windows CE And Windows XP Applications?

Mar 1, 2012

I have a desktop (XP) application and a CE app (Motorola MC9090) and I want to Scan few Barcodes with Motorola and then send the text to the application on PC using WiFi. I have no idea how to do it - (VB.NET preferred)

View 1 Replies

Setting Variables To Store User Setting For Applications

Feb 13, 2012

In our projects we use setting variables to store user setting for the applications. Moreover, with every latest version of the applications, we upgrade these variables to retain user settings.Normally, this works fine, but recently one of my end user reported an error i.e.Configuration System failed to initialize". The error is related to user.config file. Therefore we requested the user to send us his file.After received the folder, we noticed that it contains 3 files (3begfjb.newcfg,3begfjb.tmp and user. config). 3begfjb.tmp is an empty file, while 3begfjb.newcfg and user.config are identical files. We tried to open these files but the data in user.config isn't proper xml rather its unreadable formatted file.Do any you guys had experienced this sort of issue or any ideas how and what may have created these files and corrupted user.config file.

View 3 Replies

.net - Convert And Run The Windows Applications?

Apr 20, 2010

Which version of Mono do I need to convert and run the Windows applications that I developed using VB.NET that came along with .NET 3.5, in Ubuntu?

View 3 Replies

Animations For Windows Applications?

May 25, 2010

Animations For Windows Applications

View 1 Replies

C# - Animations For Windows Applications?

Jan 20, 2011

Where can I find standard (licence free) animations like "Copy" for self implemented windows applications (avi,animated gif)? Visual Studio has only few animations in its image library (unfortunately not the "Copy" animation).

View 3 Replies

MAC Like GUI For Windows .NET Desktop/Web Applications

Apr 13, 2012

how to give a mac like UI look to desktop apps

View 1 Replies

Passing Value Between 2 Windows Applications?

Oct 26, 2009

I have 2 windows apps: a.exe and b.exe. Both of them are running, if i click a button on b.exe, i want to pass a string to a.exe. Once a.exe receives this string, a.exe will do something. Is this possible between 2 windows apps?

View 2 Replies

VB Windows Form Applications?

Jun 18, 2012

ith the following windows form applications in VB, question is attached.

View 9 Replies

Accessing Items In Windows Applications?

Jun 21, 2010

how to access an item like a button in a windows application?For example, I would like to create an application that would be able to look at notepad's file menu and "know" that file, edit, etc on the file menu are clickable objects and identify (expose) these objects to my application.

View 3 Replies

Create Chart In C#.NET For Windows Applications?

Mar 26, 2009

I am working in Windows applications. I want to create a Chart for showing results as user friendly. How to create chart in VB.NET or C#.NET for Windows Applications.

View 3 Replies

Database - Create Windows Applications In ASP.Net?

May 11, 2009

which method is more efficient to use: DataAdapter and DataSet Or DataReader when importing data from a certain database table???

View 6 Replies

Deploying .Net Windows Applications That Depends On ODP.NET

Dec 10, 2009

I have an application (.net 3.5 app) that depends on odp.net (11g). I had installed the odp.net on the production machine, i deployed my binaries. The program works fine, however it displays an error like this:This application has failed to start because MSVCR71.dll was not found. Re-installing the application may fix the problem.The machine has Windows 2003 R2 as OS. This error occurs on the catch Oracle Exception block of my code. The program is supposed to display a message box indicating the error. It works as expected in my development machine..

View 2 Replies

Deploying Windows Applications With A Database

Feb 6, 2010

I'm a first time visitor and poster, but I'm definitly going to stick around. I'm running an old version of Visual Studio .Net Academic 2002 and the .Net framework 2.0. I'm stuck on an issue regarding the deployment of a few programs I've thrown together. They all work fine on my development machine, but the problem they all use SQL Server databases, and I can't find any specific help on deploying a windows application with a database on a machine that isn't set up basically just like my development machine.

I know that I need the .net runtime bootstrapper on the target machine, so I can run basic programs that dont use SQL databases. That's no problem. But what about programs that make heavy use of databases? How does one go about deploying it on target machines? Is there a SQL server bootstrapper?

[Code]...

View 3 Replies

Icons For Printing In Windows Applications

Feb 15, 2012

I am using winform for printing a receipt created in vs2008.I have buttons that is printing my receipt.I have used pagesetupdialog,printdialog etc in my form programatically.What I want is to have icons of these controls which I have used the way they are availale in msword.I have got print.bmp file for printing but not getting for pagsetup,printpreviewcontrols icons.I searched for .ico and .bmp file in my compand on net aswell.

View 2 Replies

Updating Windows Applications Over The Internet?

Sep 14, 2009

I have a windows application developed in VB.net 2005. The application is installed in several machines.Is there anyway when I do any modifications and publish the code it updates in all the machines.

PS: All the machines are connected to internet.

View 2 Replies

Use Javascript / Jquery In Windows Applications?

Dec 2, 2011

This might be a stupid question but is it possible to use javascript/jQuery in windows applications? Im making this application in vb.net, just for personal use and im just making it to practice and to learn more about vb.net programming. I know javascript is ment for web applications but maybe there are ways to use them in windows applications aswell.

[Code]...

View 4 Replies

VS 2008 Interacting With Other Windows Applications?

Jan 9, 2010

I didn't know where to post this question so I hope I put it in the right forum...I am not new to Visual Basic, however I am definitely not an advanced user. I would like to build an application that would allow me to interact with other programs on my computer. For example, if I were to build an application that could control iTunes, how would I go about this?

Or, I am looking to make an application that would allow me to do little things on my computer like disable my track pad if I have a mouse plugged in. How would I build something that could interact with windows (or iTunes) like that?

View 2 Replies

Windows - Coverting .Net Applications To Services?

Jul 7, 2011

I have a basic VB.Net application that gets data from some websites and then send them to a MS-SQL database automatically. I have developed it as a desktop application with a WinForm front end with logs writing to the WinForm continuously. Now, is it possible to convert the Winform to a Windows services so that I do not need to keep it opening in front of my PC and watching the logs, instead, it runs quietly in the background and the data gets logged into the system log viewer?

View 3 Replies

Access Menu Items And Windows From Other Applications In .NET?

Sep 17, 2009

I am needing to be able to access excel and adobe acrobat menu items and popup Windows (mostly acrobat). Is there a way to do this besides using mouse clicks and sending key strokes (come on, this aint applescript). There are some menu actions I need to automate and I need to be able to discover if a window did open and if so I need to do things in it.

View 1 Replies

Disable A Key From All Windows And Applications While The Program Is Loaded?

Apr 15, 2009

what the code would be to have a low level keyboard hook to disable a key from all windows and applications while the program is loaded? in this case the key is

Quote:

But only wile a radio button is selected called rb1 anyone got an idea of what the code would be ?

also it would also be good if when a seccond radio button is selected called rb2 that the key gets replaced with the key / text in textbox1 however just the 1st bit would do nicely for me

View 7 Replies

Receiving Exceptions In .NET 2.0 Windows Forms Applications?

Sep 15, 2010

I'm running into some strange exceptions coming from a few workstations that are running one of our Windows Forms Applications. The application is written for .NET Framework 2.0 and coded in VB.NET. We've re-imaged the machines a couple of time but not matter what we do, the same problem occurs. We are not seeing this problem with any other machines besides these two. Below is the exception message and the Stack Trace. Can anyone provide any insight as to why this may be happening?

[Code]...

View 2 Replies







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