Storing Usernames And Password After The Program Closes?
Feb 6, 2012storing usernames and password after the program closes. I do not want them to be stored in a .txt file, as this is insecure. How do I store it?
View 2 Repliesstoring usernames and password after the program closes. I do not want them to be stored in a .txt file, as this is insecure. How do I store it?
View 2 RepliesFirst 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 RepliesI have an application that authenticates against a third party web service by sending a username and password. At the moment I'm typing the password on a winform each time I start the application - but I need it to login automatically.
I'd like to store the username/password somewhat more securely than
Dim username as String = "username"
Dim password as String = "password"
I understand that I probably won't stop a determined hacker with access to my source code, but storing them as plaintext feels wrong. I've found some similar questions on here but none that provide me with an answer I can use.
Edit: The web service isn't mine, it's an API that requires me to login to use.
Entering Username and Password and Storing it to a database in ASP.Net?
View 1 RepliesI'm writing a backup program for personal (for the moment at least) use.
For some directories (network directories / protected directories) credentials are needed to access them.
I can setup different jobs in the program to run at specific times.
These jobs are stored in an XML file.
I want to also store the usernames and passwords which the jobs will need.
What and where would be the best way to store these?
Changing permissions on the directories is not an option.
I have an application that is updating from my ftp server.Inside app I have 2 variables like this:
myFtpUser="ftpuser@mydomain.com"
myFtpUserPassw="myftppassword"
I obfuscate exe using Eazfuscator.For two times someone deleted all files from ftp account,I suppose he got the ftp password,is it possible to got it from my app exe ?Is it enough protected ?
I have this string
mainString="/MyApp/ViewPage.aspx?userId=admin&password=1&id=975"
I am getting value in mainString using this code
Dim mainString As String = Request.QueryString("dest")
And I have two sting variables
1)strTempUsername
2)strTempPassword
In these variables I want to store userId and password values from mainString.
So for this requirement how I write logic in code
Dim arrArray() As String
'/MyApp/ViewPage.aspx?userId=admin&password=1&id=975"
strIndexq = mainString.IndexOf("?") ' Check QuestionMark Exist or not in mainString
If strIndexq > 0 Then
Dim strTemp As String
[Code] .....
Here I am getting userId and password but in this code I will get problem when after ? if userId and password starts wit capital letters and password maybe contain characters like "1&a"
And after getting userid and password. I want to remove userid and password from mainstring. So I want mainstring look like:
"/MyApp/ViewPage.aspx?id=975"
Does anyone know how to store the connection string in a file rather than hard coding it in the application. For example i have declared this connection string in the form to connect to oracle database and it works. But i assume this is not the right way to go by if one is looking for more secured environment.
strcon = "Provider=MSDASQL;" & _
"Driver={Microsoft ODBC for Oracle}; " & _
"CONNECTSTRING=(DESCRIPTION=" & _
[code].....
I'm currently working on a CRM project in vb.net. I want the program to start with a prompt that asks for a password and if the user enters the correct password then the main form loads.Im having some problems wrapping my mind around this...
View 10 RepliesI have a small problem with sockets (I'm new to sockets). Below is the code I'm using. The problem is that when the client closes, the server closes aswell. How do I stop it from doing that?
[Code]...
After the OK button is clicked on any message box in my program it automatically quits. Does anyone know how to fix this?
View 3 RepliesI'm looking for a more elegant way to work around a problem I have
Code:
Private Sub MnuCheckForUpdates_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MnuCheckForUpdates.Click
Dim startInfo As New ProcessStartInfo(mStartUpPath & "" & "Updater.exe")
Process.Start(startInfo)
End Sub
As you can see I�m calling my updater program, but I want some code to run only after the Updater has closed.My work around was to:
A - Initially load the updater.
B � Start a time
C � Check if the updater is still running.
D � If its not call the routine in the timer event.
But this is not elegant is there another way around this, I can call events in the updater but I don�t think I can join them in someway to ProcessStartInfo Class .
I have made a program that has an intro screen, moving onto an activity select screen which acts as the main interface to get around the program. After creating the program and installing it on my computer, when I close the program from the activity select screen, using the "X" at the top right corner, the program continues to run under "processes" in the task manager.If I close the program from the intro screen though, it will close everything, including the processes. Is there anyway I can get the same to happen with the game select screen? I can make it work by putting my own "End" button on the form, but id prefer to be able to do it with forms own close button.
View 5 RepliesI'm working on program that has two forms. The main form is called 'frmMain'. Second form is called 'FrmHistory'. In the History form, you can check a number of combo boxes to set settings for a grid.
This works.Now, when I close the FrmHistory form and then open it again, I have it so those combo boxes (Settings) are how I left them. This works. I do so via this.
[Code]...
i have a third party software and i would like it to lunch when someone runs my program (and no its not a virus). But the thing is when you run it; it shows up in the system tray, how can i set the program to invisible and close it when it my app closes?
View 13 RepliesSorry for the extra long title, Here's what I want to do.I want to give the user the option of using or not using specific features of the program.If I can set a simple yes or no value that wil persist each time the program run and then depending on the variable turn off or on the feature at start
View 14 RepliesOk, So I am making a front-end for a program, and it runs the exe with command line arguments. One of those arguments is creating a log file that tells me who the winner is. Currently I have code that runs the app, tell VB when it exits and then does another event. When testing with message box as the other event, works fine.
When running the System.IO.Streamreader the app just closes down on its own and there are no errors shown.
[Code]...
Having read the rules I don't have much code to show apart from these lines I want to have executed just before the program or a form closes.
If My.Computer.FileSystem.FileExists("File.file") then
My.Computer.FileSystem.DeleteFile("File.file")
End if
NotifyIcon stays on taskbar when application closed, then when I move mouseover it, it disappears.[code]...
View 1 RepliesDoes anybody know if it's possible to make your program 'self-destruct' (delete itself) when it closes? I know this sounds like malware, but it's not. What happens is the user clicks 'install', the application copies itself to another directory, then the application starts the new copied file, with an argument that begins the installation, kills itself, and then the copied application restarts and then it's done. But I can't get rid of the original executable.
View 13 RepliesFor some reason, every time I hit the red "X" button to close the program. The program closes, but the process is still there. How do I make it so that if I press it, itll end the process too?
View 6 Replieshow you would go about saving information(username, password, security questions) in a notepad, so it can be retrieved after a program closes. i'm making a log in program in my class, but we haven't done this, so when the program closes, everything is gone. rather annoying, to have to make a accounts each time i'm testing it.
View 6 RepliesI'm trying to make a simple program that detects if a game closes, and when it does, it shuts down the computer.
View 1 RepliesI have a VB program that displays a PDF file. When the program is closed it takes 30 seconds or so before AcroRd32 process releases the PDF file. In certain circumstances if the program is restarted with in this period, the PDF file does not display. The specific circumstances is that I have a second program (re)starting the program that displays the PDF file.
a) Make the PDF file be immediately released when my program closes
b) When the PDF file is loaded test that it properly loaded so that it can be reloaded if necessary.
I have 2 modules and 2 forms. In the module1, I initiated the form classes and also here I have my public appexit() method.In module2, I have another class(in the form of a keyboard done by code). Form2 use this class as its control.I have:
form1_closing()
mybase.close()
)
[code]....
Now when I call appexit() in my module1 from form1, I can see that the debug is going into form1_closing but when it goes inside form2_closing, it crashing the application here.I am developing mobile device application in Vs2008.Net3.5.
I'm using .net 2008 Trying to create a small graphic component, I have a problem setting background both at design time and then runtime. I derived a panel like this
[code]...
But it isn't working! If I don't Overrides Property BackColor, this is working as expected but I really need to group in my custom tab.
I need to make a program for school that closes the active window. My application does now SendKeys.Send("%{F4}"). It works but, it also does it when there are no active windows. I want it to close only the active windows.
View 6 RepliesI am making a program that NEEDS to be password protected, so i made a textbox with a code so that when the user enters the right password it lets you in. But if the user/person enters a wrong password 2X it will kick you out. So is there a way to keep the
View 3 Repliesnote, this is homework. It's not worth much, but i really need to learn how to store things in arrays. my biggest confusion is that i have no idea how to store something in an array, have the program run again andcontinuouslybuild the array andthen display the array in its current state (by like clicking a display poll button) and then still allow it to build more once more data is entered.Here's the whole assignment. I don't really understand how to start it and the problem above is my biggest frustration!ite a Visual Basic application that can be used to determine the best Super Bowl commercial. The choices are as follows: Budweiser, FedEx, E*Trade, and Pepsi. The application should allow for the user to enter a voter's name, gender and select a commercial from a list.
Create a Vote structure that will contain the voter's first name, last name, gender and the selected commercial. Each time a vote is entered, the information should be added to an array of Vote structures.Provide the ability to save your data to a sequential access file. The program should also be able to read an existing file of vote data into an your array of Vote structures. Doing so, should eliminate any data that may have already been in the array.
In the program I'm working on, there is a 'sign-in' form that pops up for the user to enter first name, last name, and DOB. What I want to do is STORE that information in a text file for FUTURE use by the program (i.e. displaying a list of all previous users of the program).I already know how to use streamwriter to write text to a file, but I would like for the text file to be stored within the program files and also for a new user's data to be appended to that file every time.
Do I simply add the text file to the project files? When I do that, its path is 'My Documents'. How will that affect the program when I publish it? I guess I just don't yet understand what happens when the program is finished and published. The code for the 'Submit' button on the sign-in form is pasted below. At the bottom, I've put a comment to indicate where I want to store the data to a file.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim TxtBox() As String = {TextBox1.Text, TextBox2.Text, TextBox3.Text}
For i As Integer = 0 To 2
If TxtBox(i) = Nothing Then
[code]....