ruby-entropy 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/ruby-entropy.rb +2 -0
  2. metadata +3 -4
data/lib/ruby-entropy.rb CHANGED
@@ -14,6 +14,8 @@ class RubyEntropy
14
14
  (31 * bad_passphrase_multiplier * Math.log(entropy / 13.62)).round(2)
15
15
  end
16
16
 
17
+ private
18
+
17
19
  def entropy
18
20
  Math.log2(count ** length)
19
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-entropy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,8 +11,7 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2013-05-22 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Calculates password strength based on standard entropy definition. Strength
15
- is reduced based on repeatability and common password test functions
14
+ description: Returns passphrase strength based on entropy and weak passphrase tests
16
15
  email: brooksmason@gmail.com
17
16
  executables: []
18
17
  extensions: []
@@ -42,6 +41,6 @@ rubyforge_project:
42
41
  rubygems_version: 1.8.25
43
42
  signing_key:
44
43
  specification_version: 3
45
- summary: password strength algorithm
44
+ summary: passphrase strength algorithm
46
45
  test_files: []
47
46
  has_rdoc: