Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.††If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 18th, 2005, 02:00 AM
Authorized User
 
Join Date: Dec 2004
Location: Chennai, TN, India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to kvanchi
Default Algorithm

i need to encrypt the password field in the database
can any one help with the algorithm for that


Reply With Quote
  #2 (permalink)  
Old January 18th, 2005, 08:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,111
Thanks: 0
Thanked 3 Times in 3 Posts
Default

.NET has built in encryption.

SHA1 is one example.

Another:
http://www.aspnetpro.com/NewsletterA...otDotNetP&ID=9
Reply With Quote
  #3 (permalink)  
Old January 20th, 2005, 01:24 AM
Authorized User
 
Join Date: Dec 2004
Location: Chennai, TN, India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to kvanchi
Default

thk u so much

Quote:
quote:Originally posted by stu9820
 .NET has built in encryption.

SHA1 is one example.

Another:
http://www.aspnetpro.com/NewsletterA...otDotNetP&ID=9
Reply With Quote
  #4 (permalink)  
Old January 20th, 2005, 04:28 AM
Authorized User
 
Join Date: Dec 2004
Location: Chennai, TN, India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to kvanchi
Default



hi
the code given in the link does only encryption
i also want to decrypt the password field when authenticating user while he logs in
*-------this is the code in the link--------------*
Imports System.Text

Imports System.Security.Cryptography



Module modEncrypt

  Public Function HashData(ByVal s As String) As String

    'Convert the string to a byte array

    Dim bytDataToHash As Byte() = _

     (New UnicodeEncoding()).GetBytes(s)



    'Compute the MD5 hash algorithm

    Dim bytHashValue As Byte() = _

    New MD5CryptoServiceProvider().ComputeHash(bytDataToHa sh)



    Return BitConverter.ToString(bytHashValue)

  End Function

End Module

*------------------------------------------------*
could u pls help me in decrypting the password field











Quote:
quote:Originally posted by stu9820
 .NET has built in encryption.

SHA1 is one example.

Another:
http://www.aspnetpro.com/NewsletterA...otDotNetP&ID=9
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apriori algorithm iralala J2EE 4 January 1st, 2014 05:49 PM
FTC algorithm iralala Java Databases 1 February 3rd, 2009 06:57 AM
Can someone help me with this algorithm please! th kishan4910 VB How-To 18 February 5th, 2008 06:15 AM
algorithm angelboy Other Programming Languages 0 April 14th, 2007 08:56 AM
Typical Algorithm rajanikrishna ASP.NET 1.0 and 1.1 Professional 0 November 20th, 2006 02:05 AM



All times are GMT -4. The time now is 05:25 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.