The following warnings occurred:
Warning [2] Undefined variable $captcha - Line: 15 - File: global.php(587) : eval()'d code PHP 8.2.24 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(587) : eval()'d code 15 errorHandler->error_callback
/global.php 587 eval
/showthread.php 28 require_once
Warning [2] Undefined variable $redirect_url - Line: 21 - File: global.php(587) : eval()'d code PHP 8.2.24 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(587) : eval()'d code 21 errorHandler->error_callback
/global.php 587 eval
/showthread.php 28 require_once



 
  • 0 Vote(s) - 0 Average
Hawksmouth needs your help!
Kevin   19-02-2013, 10:17 PM
#10
Well, this kind of stuff isn't very secret and I don't believe in security by obfuscation. And by doing this, you just make it that way that hackers would need a ton of time to hack every user so it simply isn't profitable to them to try to.

Also, this really doesn't use much resources at all: you create a random value once for every user and use a fixed value for 1 user.

So basicly you just get 1 value from the database, encrypt the password with it and the fixed value and compare it to what we have in the database. 2 query's ain't that bad.

You can never achieve 100% security though and if one wants to hack a user, they will. Social engineering for example: at my work I can see the passwords of our customers their internet subscription control panel.

Mostly it's the name of their kids...

 

I do not encrypt any value except for your password (and possibly your secret answer, not sure yet) because it doesn't make any sense at all to do so: you need those values. The point of encryption is to make it impossible to retrieve those values. So if we would store your email encrypted, we wouldn't be able to mail you because your mail can't get decrypted. Encryption is one-way most of the times.

If you would use two-way encryption (so be able to decrypt it) you would waste a ton of resources on that.

The password value gets encrypted when you register together with your personal secret value and the fixed secret value. Since SHA1 always returns the same value for a hash, you know what the value is that you should get. So, when you try to login we encrypt your inserted password together with the 2 secret values (salts). If it matches up, you have entered the right password, if not, you entered it wrong.

Even I can't see your password... [Image: default_wink.png]

« Next Oldest | Next Newest »


Messages In This Thread
Hawksmouth needs your help! - by flythth - 16-02-2013, 06:47 PM
Hawksmouth needs your help! - by flythth - 16-02-2013, 06:47 PM
Hawksmouth needs your help! - by Kevin_mybb_import1 - 16-02-2013, 07:52 PM
Hawksmouth needs your help! - by flythth - 16-02-2013, 08:32 PM
Hawksmouth needs your help! - by Kevin_mybb_import1 - 16-02-2013, 10:07 PM
Hawksmouth needs your help! - by JW-NL - 17-02-2013, 02:05 AM
Hawksmouth needs your help! - by flythth - 17-02-2013, 11:49 AM
Hawksmouth needs your help! - by Kevin_mybb_import1 - 17-02-2013, 11:03 PM
Hawksmouth needs your help! - by flythth - 18-02-2013, 10:47 PM
Hawksmouth needs your help! - by Kevin_mybb_import1 - 19-02-2013, 10:17 PM
Hawksmouth needs your help! - by flythth - 21-02-2013, 08:22 AM
Hawksmouth needs your help! - by Kevin_mybb_import1 - 21-02-2013, 11:11 PM
Hawksmouth needs your help! - by Kevin_mybb_import1 - 21-02-2013, 11:32 PM


Users browsing this thread: 2 Guest(s)
Powered By MyBB, © 2002-2024 MyBB Group.
Made with by Curves UI.