aboutsummaryrefslogtreecommitdiff
path: root/tests.js
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2016-11-10 21:55:32 +1100
committerIan Coleman <coleman.ian@gmail.com>2016-11-10 21:55:32 +1100
commite6a799cc7e07629ae9bd0c5ea27d1ccd51f871b7 (patch)
tree0ac5912dec8edda49bfd817df595969e0ac6169e /tests.js
parenteea357ca48986a384032467962e38c824c22cf4a (diff)
downloadBIP39-e6a799cc7e07629ae9bd0c5ea27d1ccd51f871b7.tar.gz
BIP39-e6a799cc7e07629ae9bd0c5ea27d1ccd51f871b7.tar.zst
BIP39-e6a799cc7e07629ae9bd0c5ea27d1ccd51f871b7.zip
Strength tests include zxcvbn strength detection
Diffstat (limited to 'tests.js')
-rw-r--r--tests.js17
1 files changed, 13 insertions, 4 deletions
diff --git a/tests.js b/tests.js
index f672cbd..2236e04 100644
--- a/tests.js
+++ b/tests.js
@@ -2594,11 +2594,20 @@ page.open(url, function(status) {
2594 events: 32, 2594 events: 32,
2595 bits: 128, 2595 bits: 128,
2596 words: 12, 2596 words: 12,
2597 strength: "easily cracked",
2598 },
2599 {
2600 entropy: "AAAAAAAA BBBBBBBB CCCCCCCC DDDDDDDA",
2601 filtered: "AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDA",
2602 type: "hexadecimal",
2603 events: 32,
2604 bits: 128,
2605 words: 12,
2597 strength: "strong", 2606 strength: "strong",
2598 }, 2607 },
2599 { 2608 {
2600 entropy: "AAAAAAAA BBBBBBBB CCCCCCCC DDDDDDDD EEEEEEEE", 2609 entropy: "AAAAAAAA BBBBBBBB CCCCCCCC DDDDDDDA EEEEEEEE",
2601 filtered: "AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEE", 2610 filtered: "AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDAEEEEEEEE",
2602 type: "hexadecimal", 2611 type: "hexadecimal",
2603 events: 40, 2612 events: 40,
2604 bits: 160, 2613 bits: 160,
@@ -2606,8 +2615,8 @@ page.open(url, function(status) {
2606 strength: "very strong", 2615 strength: "very strong",
2607 }, 2616 },
2608 { 2617 {
2609 entropy: "AAAAAAAA BBBBBBBB CCCCCCCC DDDDDDDD EEEEEEEE FFFFFFFF", 2618 entropy: "AAAAAAAA BBBBBBBB CCCCCCCC DDDDDDDA EEEEEEEE FFFFFFFF",
2610 filtered: "AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEEFFFFFFFF", 2619 filtered: "AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDAEEEEEEEEFFFFFFFF",
2611 type: "hexadecimal", 2620 type: "hexadecimal",
2612 events: 48, 2621 events: 48,
2613 bits: 192, 2622 bits: 192,