473,626 Members | 3,305 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to encript password

4 New Member
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 1410
Salimunnisaa
5 New Member
include the following namespaces
Imports System.Security .Cryptography
Imports System.Text
Imports System.IO

(-------------------------------using md5-----------------------------------)
Dim hashdatabytespa ssword As Byte()
Dim encoder As New UTF8Encoding
Dim md5hasher As New MD5CryptoServic eProvider
Dim pass As Byte
Dim strpwd As String = ""


hashdatabytespa ssword = md5hasher.Compu teHash(encoder. GetBytes(TextBo x2.Text))

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


For Each pass In hashdatabytespa ssword
strpwd = strpwd + pass.ToString
Next

(--------strpwd contains the encrypted password----------)
Jun 9 '07 #2
venki0110
4 New Member
@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
2761
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 include them for API access. Are there any tools to encript C++ header files? -haro
1
1678
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
6005
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, and the linked tables are successfully created. I use the data from these linked tables in several forms. All works great until I close the Access frontend and open it again. When I try to use the forms, I get an error message: "Could not...
10
9860
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
2665
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 human readable password although the user open the sqlserver database. Any ideas? Any better suggestion? any guidelines? Thank you in advance.
1
5646
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 but i dont know how to encript/pw protect the files and even if it is possible with ZipArchive. Is there a way to do this?
0
8262
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8196
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8637
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4090
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2623
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 we have to send another system
1
1807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.