Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Sticking with V6...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sticking with V6...

 Post Reply Post Reply
Author
Sweet View Drop Down
Newbie
Newbie
Avatar

Joined: 12 March 2003
Location: United Kingdom
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sweet Quote  Post ReplyReply Direct Link To This Post Topic: Sticking with V6...
    Posted: 12 March 2003 at 4:36am
This is mainly for borg but anyone else can help then great.

I've spent a lot of time customizing v6 before v7 was released and although v7 looks great I think i'll stick to v6 because it works fine for me and it would take me too long to customize the forum again.

I was wandering while you were updating the forum to v7 what obvious code changes could I make to the latest v6 to:

+ improve the speed
+ increase security
 
Also how easy is it to implement the     160bit Encryption of passwords?

Thanks.
Back to Top
dolby71 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 October 2002
Location: Israel
Status: Offline
Points: 203
Post Options Post Options   Thanks (0) Thanks(0)   Quote dolby71 Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2003 at 8:52am

Originally posted by Sweet Sweet wrote:

Also how easy is it to implement the 160bit Encryption of passwords?

I asked myself the same question....

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2003 at 10:15am

It is easy when you use sql server. password encryption is built in with sql server. so if someone signs up you create the account with a query like the following:
strSQL = "INSERT INTO tblAuthor (Username, [Password]) Values ('"
strSQL = strSQL & Username & "', pwdencrypt('" & strPassword & "')"

I left other fields out. But this function created the password. But one thing you should change is change the field type of the password to binary.

Now when someone logs in you need to compare the clear text password that is submitted by the form with the encrypted value. You could do something like the following:
strSQL =          "Declare @LoginUser varchar(30) "
strSQL = strSQL & "Declare @EncryptedPIN varbinary(255) "
strSQL = strSQL & "Select @LoginUser = (Select Username from tblAuthor where Username = '" & strUsername & "') "
strSQL = strSQL & "Select @EncryptedPIN = (Select [Password] from tblAuthor where Username = @LoginUser) "
strSQL = strSQL & "Select @LoginUser AS Username, pwdCompare('" & strPassword & "', @EncryptedPin, 0) AS Success "
strSQL = strSQL & "FROM tblAuthor where Username = @LoginUser"

Now you just read out the value Success if it is 0 then the login failed if it is 1 it was successful. It works very well for me and you would just have to encrypt existing passwords manually using some code. Hope that helps.

Back to Top
Sweet View Drop Down
Newbie
Newbie
Avatar

Joined: 12 March 2003
Location: United Kingdom
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sweet Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2003 at 8:05pm
Thanks michael but I'm using the access version.
How would that work?
Any ideas for the speed/security improvements?
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2003 at 9:19pm
well access is the opposite of secure. sure there will always be ways to improve but it's just the nature of access to be unsecure and slow. 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.