Skip to content

Commit

Permalink
move s/key to alternate, and fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
atoponce committed Apr 1, 2021
1 parent 2c467da commit 5c44dec
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
6 changes: 2 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ <h1>Passphrase and Password Generator</h1>
<option>Pokerware</option>
<option>RockYou</option>
<option>Simpsons</option>
<option>S/KEY</option>
<option>Trump</option>
</select>
</div>
Expand Down Expand Up @@ -151,7 +152,6 @@ <h1>Passphrase and Password Generator</h1>
<option>Apple, Inc.</option>
<option>Bubble Babble</option>
<option>Korean K-pop</option>
<option>S/Key</option>
<option>Secret Ninja</option>
</select>
</div>
Expand Down Expand Up @@ -237,6 +237,7 @@ <h1>Passphrase and Password Generator</h1>
<script src='lists/alternateRockyou.js'></script>
<script src='lists/alternateShavian.js'></script>
<script src='lists/alternateSimpsons.js'></script>
<script src='lists/alternateSkey.js'></script>
<script src='lists/alternateTrump.js'></script>

<!-- bitcoin passphrase generator -->
Expand Down Expand Up @@ -294,9 +295,6 @@ <h1>Passphrase and Password Generator</h1>
<script src='lists/effStarTrek.js'></script>
<script src='lists/effStarWars.js'></script>

<!-- pseudowords generator -->
<script src='lists/pseudoSKey.js'></script>

<!-- emoji - on its own -->
<script src='lists/randomEmoji.js'></script>

Expand Down
9 changes: 6 additions & 3 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,19 +323,20 @@ function generateAlternate (selection) {
wordList = wordList.concat(alternatePokerware) // 5304 words
wordList = wordList.concat(alternateRockyou) // 7776 words
wordList = wordList.concat(alternateSimpsons) // 5000 words
wordList = wordList.concat(alternateSkey) // 2048 words
wordList = wordList.concat(alternateTrump) // 8192 words
wordList = wordList.concat(bitcoinEN) // 2048 words
wordList = wordList.concat(dicewareEN) // 8192 words
wordList = wordList.concat(dicewareBeale) // 7776 words
wordList = wordList.concat(dicewareNLP) // 9072 words
wordList = wordList.concat(dicewareNLP[0]) // 1296 words
wordList = wordList.concat(dicewareNLP[1]) // 7776 words
wordList = wordList.concat(effDistant) // 1296 words
wordList = wordList.concat(effGameOfThrones) // 4000 words
wordList = wordList.concat(effHarryPotter) // 4000 words
wordList = wordList.concat(effLong) // 7776 words
wordList = wordList.concat(effShort) // 1296 words
wordList = wordList.concat(effStarTrek) // 4000 words
wordList = wordList.concat(effStarWars) // 4000 words
wordList = wordList.concat(pseudoSKey) // 2048 words
break
case 'English (Deseret)':
wordList = alternateDeseret
Expand All @@ -358,6 +359,9 @@ function generateAlternate (selection) {
case 'Simpsons':
wordList = alternateSimpsons
break
case 'S/KEY':
wordList = alternateSkey
break
case 'Trump':
wordList = alternateTrump
break
Expand Down Expand Up @@ -638,7 +642,6 @@ function generatePseudowords () {
if (pseudo === 'Apple, Inc.') ret = generateApple()
else if (pseudo === 'Bubble Babble') ret = generateBabble()
else if (pseudo === 'Korean K-pop') ret = generateKpop()
else if (pseudo === 'S/Key') ret = generateSKey()
else if (pseudo === 'Secret Ninja') ret = generateNinja()

const pass = ret[0]
Expand Down
16 changes: 8 additions & 8 deletions lists/pseudoSKey.js → lists/alternateSkey.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5c44dec

Please sign in to comment.