Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

What are the best practices to encrypt passwords stored in MySql using PhP? -


i seeking advice on how securely store passwords in mysql using php.

overlooking limitations of php itself, want know more salting, hashing, , encrypting these bad boys.

obviously people continue use weak passwords unless forced otherwise, it's how storing them important me. user's passwords far more important me database itself, , such want keep them in such way painstaking , monotonous script kiddie trying reverse. due diligence can defeated, wouldn't mind making particularly bothersome.

there 2 scenarios looking at.

  1. the kiddie has complete copy of database.
  2. the kiddie has complete copy of php used craft password, , database.

any , advice on topic graciously appreciated.

use bcrypt. if has user table of database, can use brute force/rainbow tables/etc heart's content. salt, if you're using md5 or other fast-hashing algorithm (which aren't designed solve problem, way); it's matter of time before can cracked.

any well-known , widely-supported hashing algorithm going have same basic "flaw" (if can call that; it's definition). difference bcrypt slow molasses when performing hashing operation, rendering brute force attack less effective.

for absolutely great discussion on merits of bcrypt, dangers of other approaches, , difficulty of password security in general, read this thread. has lots of comments many people more knowledgeable sort of thing am, , should understand more of issues @ stake.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -