#NEWLINE# def create_passphrase( bits_of_entropy = None , num_words = None , language = 'english' , word_source = 'wiktionary' ) : #NEWLINE# #INDENT# ' Creates a passphrase that has a certain number of bits of entropy OR\n        a certain number of words.\n    ' #NEWLINE# wordlist = get_wordlist ( language , word_source ) #NEWLINE# if ( not num_words ) : #NEWLINE# #INDENT# if ( not bits_of_entropy ) : #NEWLINE# #INDENT# bits_of_entropy = 80 #NEWLINE# #UNINDENT# num_words = get_num_words_with_entropy ( bits_of_entropy , wordlist ) #NEWLINE# #UNINDENT# return ' ' . join ( pick_random_words_from_wordlist ( wordlist , num_words ) )