Type In A Database For Usernames And Passwords?
Sep 27, 2009
I am trying to get use to this....I need to know how to type in a database for my usernames and passwords??? I am using visual basic 2008, which I think is visual.net? anyway...heres my code:
Code:
Public Class login
Private Sub login_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Hello.Hide()
[code]....
View 2 Replies
ADVERTISEMENT
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
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
Jun 30, 2011
I'm actually a beginner in VB express. i made about 10 easy programs, now i decided to make one a bit difficult. I'm stuck at the beginning.In first form i have 2 Textboxes and 1 Button (1username, 1password, button - sign in) and then another 2 Textboxes and 1Button (1username, 1password, button - register) I want to make something like this for beginning: When you register the infos from textboxes (username & password) are saved in some file (let's say in info.txt or info.ini). I actually want to know how to automatically save these usernames and passwords in text file when you click register button, so when you want to login, you have to use registered username&password. So if there in text file is not the username you registered or typed in textbox you can't login.
View 2 Replies
Mar 25, 2009
I want to create a login system that reads the usernames and passwords for a list of arrays:[code]I have managed to code the program so it accepts the correct username and password and sends a error message when they don't match. The problem I'm having is when the user enters a username that isn't on my Username list. The program always crashes when I enter say "admin1000".[code]
View 3 Replies
Oct 23, 2009
Getting some errors with a loop. It's a log-in app that has username, passwords & account type stored in a SqlCe database. I would like it to sync with a larger database for updates that has not been made so i left it out but I have started to make a loop that would connect it to the larger DB and if connection failed would try a set number of times before stopping the program. I'm coding this project with Visual Studio 08 pro
Dim conndb As New SqlCeConnection("Data Source = |DataDirectory|\Mydb.sdf")
Dim x, y, z As Double
x = 1
y = x + 1
z = 5
[CODE]...
View 1 Replies
Jun 12, 2011
I'm having a problem with the error in verifying the usernames that are already existing in the record/database.
When you inputted a username that already existing it will throw an exception, and when you change the username, it still throws the exception.
View 7 Replies
Jun 26, 2010
I recently made a small app for a friend and then made it a public app, in doing so I forgot that it connects to my MS SQL DB and checks for values. Someone used Red Gate .Net Reflector to get my password and destroy it all. I've contacted their ISP and they are looking into it, apparently this person has a static ip with them.So this is a lesson learned at a heavy price for me. How can I prevent this from happening again? How can I get away from the unsafe connection string they were able to use?
View 5 Replies
Feb 7, 2010
i'm oding a project which involves using a log in form, from which the username and passwords are compared to. However, at the moment, my code works, but not case sensitively!
Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click
Dim sql = "SELECT Username,Password FROM login WHERE Username = '" &
[Code].....
View 2 Replies
Feb 20, 2012
I am using vb.net (visual studio 2010) and have made a form application that uses a login screen. All that works but I am having trouble any firm way to encrypt the passwords in the database. The encryption doesn't have to be very high standard as its just for a college project. Whats the best way to encrypt the password into the database? Or just encrypt the password string, I can then sort out the database end myself.
View 2 Replies
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
Oct 12, 2009
I have been working on a project in which I need to get all usernames.
Add to form
Public Function GetUserId() As String
Dim lUserName As String
Dim lSuccess As Boolean
[Code].....
Unfortunately, this only gets the username of the user logged on. I was wondering if there is a way to modify this to get all user names.
View 2 Replies
Jan 25, 2009
Is it possible to get a list of usernames (as shown in Control Panel->Users) on the PC that my app is running on? If so, is it then possible to determine the type of account (i.e. Admin, Standard AND if the account is the Built-in Guest or Built-in Administrator account)?
View 1 Replies
Jun 16, 2011
Here is my code that I wrote its very simple.
Normal Code
If TextBox1.Text = "PleaseHelp" Then
Button1.Enabled = Enabled
End If
BUT I need like multiple correct logins I don't know how I forgot! EXAMPLE: If TextBox1.text = "PleaseHelp, HELP, Thanks" <--- gives me a error I know it isnt the correct way! I just cant figure it out and its basic code....
View 3 Replies
Jan 28, 2012
I need a Function that I can read all the Users that exist on the Windows System. I dont know how to realize that.
View 7 Replies
Feb 6, 2012
storing 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 Replies
Aug 4, 2009
I have the following text that I am trying to parse:
"user1@emailaddy1.com" <user1@emailaddy1.com>, "Jane Doe" <jane.doe@ addyB.org>,
"joe@company.net" <joe@company.net>
I am using the following code to try and split up the string:
Dim groups As GroupCollection
Dim matches As MatchCollection
Dim regexp1 As New Regex("""(.*)"" <(.*)>")
matches = regexp1 .Matches(toNode.InnerText)
For Each match As Match In matches
groups = match.Groups
message.CompanyName = groups(1).Value
message.CompanyEmail = groups(2).Value
Next
But this regular expression is greedy and is grabbing the entire string up to the last quote after "joe@company.net". I'm having a hard time putting together an expression that will group this string into the two groups I'm looking for: Name (in the quotes) and E-Mail (in the angle brackets).
View 4 Replies
Sep 2, 2011
I want to make different levels of access for a vb.net program i'm writing.I have a database called "stratocast". I want to show a specific form for entries in this table with "IsManager" checked and another specific form for those with "IsAdmin" checked.Im using MySql server and visual basic 2010 express
EDIT:To clear up any misconceptions about my post, ill explain further: In my vb.net application i have a login form with two textboxes; One for the username and one for password. I also have three other forms, one is called "frmAdmin", another called "frmManager" and another one called "frmEmployee".
On my database i have a table called "employee" with columns called "name", "title", "IsManager", "IsAdmin", "Username" and "Password".
IsManager and IsAdmin are both Boolean columns
This means that their values can only be 0 or 1 and the result is displayed as a checkbox.When the employee logs into this applcation i want it to check whether or not the employee is a manager, an administrator, or just a regular employee with no additional rights. If the employee is a manager, i want to show "frmManager". If the employee is an Administrator i want to show "frmAdmin". And if the employee has no additional rights then i want to show "frmEmployee".
I'd like to keep the configuration for access level checking confined to the one table but if it's better to have separate tables for each level of access (ie: tables called Admin,Manager, and Employee) then ill consider that too.
View 2 Replies
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
Jun 12, 2012
I'm trying to write a program right now for my computer science class for a program where you insert text into a text box, (the text being a password), and then click a submit button. The goal of the assignment is to have a program that looks at the user given password and see if it matches the const password (or one of the three const passwords in my case). If it doesn't, it is supposed to loop back so you can re-input the password. Also, If you enter the correct password, the loop ends and you are to get a msgbox (or, in my case three different ones), and then the application closes. We are to write the code so that if the password is wrong "x" (insert 3 as the number I have chosen), a MsgBox will pop up with a message saying
something along the lines of "you have gotten the password wrong to many times.", and then the application is supposed to close. I don't think I could rant on much more, I've done a good (or in my eyes terrible) job of summarizing the assignment.
[Code]...
My problem (aside from, I don't know, a problem with my code itself) is that when It reaches the loop, it goes through all the code again, but I'm unable to change the user given password, and so it just pops up the three failed password entry MsgBoxes (the code for which is temporarily removed), then the failed to many times MsgBox, OR one of the successful message boxes. What I'm wondering is if anyone can help me fix my code so that it functions as desired.
View 7 Replies
May 13, 2011
I am using VB.NET 2010. I have a Windows 2008 Web Server, where about 80 user accounts are activated. It is NO Active Directory Environment!!! This is a server, where Windows SharePoint Services are hosted. So, once a year, I have to give all users a new password. (I have to give it, because of some security thinkings of the owner of this Page). So, changing the password for each person is a very long activity. How can I do this by a VB.NET Program? - When I am logged on as an Administrator to this server?
View 15 Replies
May 26, 2012
The following webpage talks about using impersonation in code (ASP.NET)[url]... I am thinking about creating a class for the code, then the application can call impersonateValidUser and undoimpersonation.
I am concerned about putting usernames and passwords in my code as surely anyone will be able to see them using a tool like ILDASM. What is the best way to hide these passwords?
The article has a section titled: Impersonate the IIS Authenticated Account or User. I thought about creating an impersonated user in the Web.Config, but this would mean that the entire application is run as the inpersonated user. I only want a very small part of the application to run as the impersonated user - when it is necesary to access and update active directory.
View 1 Replies
Apr 5, 2009
How to do this: I have a webbrowser on a normal form with a listbox undernieth it. I would like the program to get the passwords from IE or FIREFOX so then I could import them into my webbrowser.
View 5 Replies
Mar 16, 2009
Yesterday night a friend did ask me what encrypting i normally use for my login passwords on the programs i make.Wel my answer = NO Encryption cause most of programs i write with a login on it as protection is only for local use.But still lately iam starting to get more intrested to make programs that are using external databases like MySql.So my Question is how to put sh1 encryption on a password.i need this in 2 ways 1. how to use it when i register a password to a database.2. how to use it when i read the password out of the database.( i dont need to know how to make a connection to mysql or etc. just the info to encrypt.)
View 1 Replies
Aug 3, 2011
Is there any possibility of clearing saved passwords using vb.net code from the browser (could be IE, Chrome or Mozzila).
View 1 Replies
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
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
Aug 3, 2011
Clearing saved passwords in browser
View 1 Replies
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
Jun 29, 2009
I looked everywhere for some source codes to get all saved passwords .. so can someone post here source code or give me some tut to read it ?
View 6 Replies