Skip to content

Instantly share code, notes, and snippets.

@dander
Created October 2, 2018 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dander/6926e7e41fdf6c62d3faa2545e8259db to your computer and use it in GitHub Desktop.
Save dander/6926e7e41fdf6c62d3faa2545e8259db to your computer and use it in GitHub Desktop.
simple GUI app which generates random passphrases from the EFF dice word list
Red [
Title: "Diceword passphrase generator"
Needs: 'View
]
word-list: https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt
words: parse load-thru word-list [collect some [keep word! | skip]]
random/seed now/precise
view [
text "generate" num: field 50x23 default 5 text "words"
return
text "passphrase:" output: field 300x23 ""
button 23x23 "📋" [write-clipboard output/text]
button 23x23 "🔄" [
output/text: form collect [loop num/data [keep random/only words]]
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment