buildkite/zxcvbn-ruby

Name: zxcvbn-ruby

Owner: Buildkite

Description: Ruby port of Dropboxes zxcvbn javascript lib

Created: 2015-02-19 09:40:20.0

Updated: 2015-02-19 09:40:21.0

Pushed: 2018-05-10 20:13:52.0

Homepage: null

Size: 1826

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

zxcvbn-ruby

Ruby port of zxcvbn.js

Usage

Gemfile:

"zxcvbn-ruby", :require => 'zxcvbn'

Example usage:

b
equire 'zxcvbn'
rue
xcvbn.test('@lfred2004', ['alfred'])
<Zxcvbn::Score:0x007fd467803098 @entropy=7.895, @crack_time=0.012, @crack_time_display="instant", @score=0, @match_sequence=[#<Zxcvbn::Match matched_word="alfred", token="@lfred", i=0, j=5, rank=1, pattern="dictionary", dictionary_name="user_inputs", l33t=true, sub={"@"=>"a"}, sub_display"@ -> a", base_entropy0.0, uppercase_entropy0.0, l33t_entropy1, entropy1.0, #<Zxcvbn::Match i=6, j=9, token="2004", pattern="year", entropy=6.894817763307944], @password="@lfred2004", @calc_time=0.003436>
xcvbn.test('asdfghju7654rewq', ['alfred'])
<Zxcvbn::Score:0x007fd4689c1168 @entropy=29.782, @crack_time=46159.451, @crack_time_display="14 hours", @score=2, @match_sequence=[#<Zxcvbn::Match pattern="spatial", i=0, j=15, token="asdfghju7654rewq", graph="qwerty", turns=5, shifted_count=0, entropy=29.7820508329166>], password"asdfghju7654rewq", calc_time0.00526

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.