Module: Zxcvbn

Extended by:
Zxcvbn
Included in:
Zxcvbn
Defined in:
lib/zxcvbn.rb,
lib/zxcvbn/tester.rb,
lib/zxcvbn/version.rb

Defined Under Namespace

Classes: Tester

Constant Summary collapse

VERSION =
"4.4.3"

Instance Method Summary collapse

Instance Method Details

#test(password, user_inputs = []) ⇒ Object

Returns a Zxcvbn::Score for the given password

Example:

Zxcvbn.test("password").score #=> 0


13
14
15
16
# File 'lib/zxcvbn.rb', line 13

def test(password, user_inputs = [])
  tester = Tester.new
  tester.test(password, user_inputs)
end