473,499 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to encrypt password in vb.net ?

Prathap
37 New Member
I am a beginner, i have used two text boxes (for username , password) and a button.
The password should be encrypted and saved in database when i click submit button. Could someone help?
Dec 14 '11 #1
3 2854
pod
298 Contributor
Google your title and you will find plenty of examples ... just try several of them and you can pick whatever is best for you
Dec 14 '11 #2
kadghar
1,295 Recognized Expert Top Contributor
Check out this library:
System.Security.Cryptography

Probably you want to use a HASH. This library includes MD5 and SHA1, but if you have some time, Rabbit has written an article about SHA-2 in VB, it could come handy. Here's the link
Dec 16 '11 #3
Hexabone
1 New Member
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
If txtUName.Text = "User" And txtPassword.Text = "admin" Then
MessageBox.Show("Comfirm")
frmMainForm.Show()
Else
MessageBox.Show("ERROR")
If txtUName.Text = "" And txtPassword.Text = "" Then
MessageBox.Show("Please Type Username and Password")
End If
End If
End Sub
Jan 6 '12 #4

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

Similar topics

4
1955
by: CLEAR-RCIC | last post by:
Hello All: I want to encrypt a username/password inside a config file that will be read and decrypted by a .dll. I have discovered many ways to do this looking at Google but was wondering if...
3
2820
by: f_salazar | last post by:
Im not goo writing in english, so here I go ! Public Shared Function Encriptar(ByVal cleanString As String) As String Dim clearBytes As () clearBytes = New...
3
1310
by: Jason Williard | last post by:
How would I encrypt a string using MD5? -- Thank You, Jason Williard
2
2655
by: Daniel | last post by:
Hi All, Does anyone know how to encrypt the password before store in the sql database? In addition, decrypt the password from database before comparison. The purpose to do it because to hide the...
1
3474
by: Feng | last post by:
Hi, In my project I have a need for encrypting the password portion (only password, not the whole file) of my database connection string, so the password doesn't show as plain text. So, basicly,...
1
1672
by: ghjk | last post by:
I m developing web base system. I want to add the facility to create users. And could you please tell me how to encrypt their password in mysql database?
1
1110
by: agarwalsunitadhn | last post by:
hi.... I want to encrypt my password so that no one can view it and in the case of transfer also there is no way to access this one. In short i want to safely transfer the data through...
5
41473
by: poolboi | last post by:
hi guys, i would like to ask thing son encryption of data presently i'm setting up a mysql database to store usernames and password for authentication is there ways i can encrypt the column...
4
2767
by: Gilles Ganault | last post by:
Hello I'd like to encrypt a customer's organization name to use this as their password to launch our application, and decrypt it within our VB5 application. We will then use this information...
2
10259
by: ghjk | last post by:
I have to develop a web application using JSP. I'm new to JSP. Could some one tell me how to encrypt password using JSP. I know php.
0
7134
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
7012
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
7180
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
7225
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
5479
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,...
1
4920
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...
0
4605
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3105
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.