Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 18th, 2005, 03:00 AM
Authorized User
 
Join Date: Dec 2004
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


 
Old January 18th, 2005, 09:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
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
 
Old January 20th, 2005, 02:24 AM
Authorized User
 
Join Date: Dec 2004
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
 
Old January 20th, 2005, 05:28 AM
Authorized User
 
Join Date: Dec 2004
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





Similar Threads
Thread Thread Starter Forum Replies Last Post
apriori algorithm iralala J2EE 4 January 1st, 2014 06:49 PM
FTC algorithm iralala Java Databases 1 February 3rd, 2009 07:57 AM
Can someone help me with this algorithm please! th kishan4910 VB How-To 18 February 5th, 2008 07: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 03:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.