Link Details

Link 1084907 thumbnail
User 1064749 avatar

By learnphp222
Published: Dec 23 2013 / 12:20

Passwords are very important security matters. How can the web developer be sure, that some security guidelines were implemented when passwords are set? Here is a password validation function, that might be useful:
  • 11
  • 1
  • 575
  • 1314


Add your comment
User 343374 avatar

stymiee replied ago:

2 votes Vote down Vote up Reply

A better way to do this would be to use only one regex instead of four plus two other error checks: if (!preg_match('/^(?=[a-z])(?=[A-Z])(?=[^\W\D])[a-zA-Z]{6,}$/', $pwd)) { // error }

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (11)

Voters Against This Link (1)

Java Performance Optimization
Written by: Pierre-Hugues Charbonneau
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java EE7
  5. HTML5 Mobile
  1. Node.js
  2. Debugging JavaScript
  3. OO JS
  4. JSON
  5. Ajax