Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - SALT description
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SALT description

 Post Reply Post Reply Page  12>
Author
cbr600 View Drop Down
Groupie
Groupie
Avatar

Joined: 05 October 2003
Location: Portugal
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote cbr600 Quote  Post ReplyReply Direct Link To This Post Topic: SALT description
    Posted: 29 July 2004 at 12:32am

Can anyone please explain me in detail how the Salt, Password and Usercode works and how it is stored on the DB?

Give me the example for

User - test
Password - webwiz 

 

Thanks in advance

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2004 at 9:51am
The Salt value is a random hex value that is added to the end of the password brofre encryption.

This means that a hacker can't try to break the encryption by trying to spot liknesses in the encrypted passwords with common values.

eg. If the encrypted password for 'webwiz' is 'ADE4674AD' then a hacker just needs to look for this to know what that users password is, with the salt value added before the password is encrypted the encrypted passwords would not look the same even if multiple users have the same password.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2004 at 9:52am
Sorry forgot to mention, the user code is just for cookie tracking and nothing to do with passwords.
Back to Top
cbr600 View Drop Down
Groupie
Groupie
Avatar

Joined: 05 October 2003
Location: Portugal
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote cbr600 Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2004 at 10:26am

so basically you add a salt value to your password, and then encryp it using the functions\hash1way.asp

I want to know what it exacly does becaus i have to append records to my tblAuthor from a previous login system i had on my web site.

So i would like all users to keep their old passords they used to login to my website, and use the same login to enter the forum.

So i have on the old login DB to convert to the web wiz SQL DB

Old Login - convert - tblAuthor

U_ID - convert - Author_ID
U_NAME - convert - Username
U_PASSWORD - convert - Password
U_EMAIL - convert - Author_email

And so i have to know how to convert a regular password to use the salt and encryption system tblAuthor uses, so that i can create a script that automaticaly converts my Old Login.

 

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2004 at 11:34am
What you have is correct.

The user_code just needs to be a unquie not easily guessed text string.

The following is about the encryption used in web wiz forums so will give you an idea of how the salt value is appened to passwords and why:-

http://local.15seconds.com/issue/000217.htm
Back to Top
cbr600 View Drop Down
Groupie
Groupie
Avatar

Joined: 05 October 2003
Location: Portugal
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote cbr600 Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2004 at 12:56pm

My question is, if i wanted to create a page that receives the inputed (from a form) username and passord, and displays me the SALT, Username, Usercode, and Password, How would i do that? Using of course the same method as the webwiz forum does.

Simply tell me: get this code from line x to y from file this.asp and include file that.asp, etc it would be a lot easier for me.

Thanks in advance.

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2004 at 1:21pm
Not sure what you mean , but the register.asp page handles the registration of new users and creates the salt value, encrypts the password, and creates the user code for the user.
Back to Top
cbr600 View Drop Down
Groupie
Groupie
Avatar

Joined: 05 October 2003
Location: Portugal
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote cbr600 Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2004 at 2:48pm

i know. What i want to do is create a .asp that reads all records from my old DB and converts them to be like tblAuthor.

I showed you my tblLOGIN table, so what i need is what would that page be like?

1 - open Old database
2 - for each record, use a code to get U_PASSWORD and  U_NAME and convert it to Password, User_Code, and Salt, (can be displayed on monitor or can be directly replaced on the old DB) so that it can be compatible with the forum DB.

 

Back to Top
 Post Reply Post Reply Page  12>

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.