Skip to content

Returns a more complex version of a Watchout4Snakes random phrase.

License

Notifications You must be signed in to change notification settings

erikcaineolson/Watchout4Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Watchout4Python

Returns a more complex version of a Watchout4Snakes random phrase (to programmatically create passphrases).

Goals

After reading XKCD's password comic, I found http://watchout4snakes.com/wo4snakes/ (W4S), and immediately loved it. I figured I'd like to automate the process for use in other applications. So, here we are!

Also, I wanted to get a feel for some basic web scraping and string manipulation with Python.

Requirements

  1. Python >= 3.6 (I honestly didn't test it on a lower version of Python...it might work)
  2. Selenium
  3. chromedriver

Run pip install selenium if you don't have this library yet.

You will need to get the appropriate chromedriver file for your system from https://sites.google.com/a/chromium.org/chromedriver/.

Use

The current script simply prints the new password, but you can call the main() function as you see fit.

Optional Parameters

main() takes the following optional parameters (in order):

Parameter Description Default Value
word_count The total number of words desired in the output phrase. 2
use_caps Whether the program should allow upper/lower case switching. False
use_leet Whether the program should allow 1337 switching. False
caps_percent The percent chance you want the program to swap a character to uppercase. This default only matters when use_caps is set to True. 25
leet_percent The percent chance you want the program to swap a character to 1337. This default only matters when use_leet is set to True. 20

About

Returns a more complex version of a Watchout4Snakes random phrase.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages