Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 August 13th, 2007, 11:53 AM
Registered User
 
Join Date: Jan 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Generate Encryped Passwords

Hi-

I am brand new to asp.net and have a basic question. For my website, we will be using one-way encryption to store passwords. I know how to create usernames and passwords through the asp.net website configuration tool. But is there a way to automatically create them? In another application I wrote, in basic asp, when a record was created in tbl_example, it generated a username and password in Tbl_Users. There was no encryption however. Is there a way to do this so it can generate the encrypted passwords? Thank you.
PS. I use sql server 2000 and the visual web developer.

Thanks in advance!

 
Old August 13th, 2007, 12:24 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there.. you have controls that will do it for you.. like the login, create user and others...

take a look at them...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old August 13th, 2007, 12:28 PM
Registered User
 
Join Date: Jan 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I'm not sure how to do this. Can I have them generated from within SQL Server?

Thanks for your help,

Harlan

 
Old August 13th, 2007, 12:32 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

this control will do all the work for you.. take a look at them..

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old August 13th, 2007, 12:46 PM
Friend of Wrox
 
Join Date: Feb 2006
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav_jain2403
Default

For SQL encryption, check this url:

http://www.sqlservercentral.com/colu...encryption.asp



Gaurav
 
Old August 13th, 2007, 04:03 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Those don't meet the original posters requirements Gaurav, they stated that they wanted a One Way encryption algorithm, both blowfish and Base64 (though not really a good algorithm for hiding things) are 2 way.

As gonzalo said, look at the built in controls to achieve this, it will speed up your production time.

And here is a link that should get you started in the right direction:
http://aspnet.4guysfromrolla.com/articles/120705-1.aspx


================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET

Professional IIS 7 and ASP.NET Integrated Programming

================================================== =========
 
Old August 15th, 2007, 06:53 PM
Authorized User
 
Join Date: Apr 2005
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Also, if you are looking into doing it by hand you can look into salted hashes. Help on that can be found on microsoft's MSDN site.

You can try here for that.
http://msdn2.microsoft.com/en-us/library/aa288534(VS.71).aspx







Similar Threads
Thread Thread Starter Forum Replies Last Post
Accepting Passwords in C++ aix_kernel C++ Programming 0 August 9th, 2008 12:58 AM
Message Boxes and passwords jackdaddy Javascript How-To 5 November 27th, 2004 11:24 PM
Passwords sampow Access 6 February 10th, 2004 02:51 PM
how do I allow my users to change passwords? webgirljudi Dreamweaver (all versions) 3 December 1st, 2003 02:51 PM
Change passwords in another workgroup Steven Access 0 July 2nd, 2003 07:27 PM





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