The PasswordStrength() calculates a numeric representation of the strength of a password.

Syntax

PasswordStrength(text)

Returns

A number between 0 and 5.

  • 0 – blank
  • 1 – very weak
  • 2 – weak
  • 3 – medium
  • 4 – strong
  • 5 – very strong

Parameters

  • text – a password text

Description

The following factors increase the strength of a password:

  • Lowercase characters
  • Uppercase characters
  • Numbers
  • Symbols
  • Password length

Examples

PasswordStrength("ladybug")                             /* returns 1 */
PasswordStrength("Ladybugs")                            /* returns 2 */
PasswordStrength("Ladybug1")                            /* returns 2 */
PasswordStrength("Ladybug1!")                           /* returns 3 */
PasswordStrength("Lad#BugS1!999")                       /* returns 4 */
PasswordStrength("hottentottententententoonstelling")   /* returns 5 */

 +31 (0)20 240 21 20       

Videos and images courtesy of WEM Modeler. © 2019. WEM Modeler.
SitemapPrivacy - Terms - Company

 +31 (0)20 240 21 20       


Videos and images courtesy of WEM Modeler.
© 2019 WEM Modeler.
SitemapPrivacy - Terms - Company