dubts about security with passwords in database -


i have read article: http://crackstation.net/hashing-security.htm

and in section hash password, says better hash password in server, because if stole hash database can access user account without need of password.

but if can stole hash database, can access whole database, correct? if correct, can access data, no of user information. why want part of information?

an attacker tries steal database able access application. of course, if database contains sensitive information (like credit card numbers) not need access application if stole database. (the pci dss standard explains how store credit cards information)

if found plain text password – able access application without problem. if database contains hashed value attacker need found plain text value corresponds hashed value. if use weak hash algorithms md5 or sha1 attacker can easier fine plain text value.

for better protection recommended use strong hash algorithms sha128 or sha 256. in addition, recommend use different salt value each user. (tip: store value in column not called salt, example userhint)

general comment: in security should protect as possible. protect application against sql injection prevent stealing of database https://www.owasp.org/index.php/sql_injection_prevention_cheat_sheet hash / encrypt sensitive in case database stolen: data https://www.owasp.org/index.php/top_10_2013-a6-sensitive_data_exposure


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -