473,385 Members | 2,005 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,385 software developers and data experts.

how to encript password

i want to encript my password before loading into database in registration form
plz send code or how to do this in asp.net with vb.net
Jun 9 '07 #1
2 1401
include the following namespaces
Imports System.Security.Cryptography
Imports System.Text
Imports System.IO

(-------------------------------using md5-----------------------------------)
Dim hashdatabytespassword As Byte()
Dim encoder As New UTF8Encoding
Dim md5hasher As New MD5CryptoServiceProvider
Dim pass As Byte
Dim strpwd As String = ""


hashdatabytespassword = md5hasher.ComputeHash(encoder.GetBytes(TextBox2.Te xt))

(--------here the textbox2 contains the password enetered by the user.----------)


For Each pass In hashdatabytespassword
strpwd = strpwd + pass.ToString
Next

(--------strpwd contains the encrypted password----------)
Jun 9 '07 #2
@Salimunnisaa

thanks for your help
Jun 10 '07 #3

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

Similar topics

11
by: Haro Panosyan | last post by:
My appologies, this is not directly C/C++ related. I have a C++ library, which is going to be shipped as compiled library, but the header files are going to be as source code, so people can...
1
by: Peter Horwood | last post by:
Is there a class in .NET that will let me encrypt/decrypt an XML file using a password (or possibly other simple encription method)?
2
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database,...
10
by: Fabrizio | last post by:
(Sorry for the crosspost, but I really don't know which is the right newsgroup!) Hi all, I try to change the password to a user that as to change the password at first logon: try {
2
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
by: macca | last post by:
Hi, I'm looking for a way to create encrypted and password protected zip files. I have just been coding the site http://webzipper.co.uk that creates zip files using the built in ZipArchive class...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.