Advertisement
skip420

PassWordGen.py

May 30th, 2019
554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GetText 16.21 KB | None | 0 0
  1. #To use, simply type `python password.py` or `python password.py -n 8`.
  2. # passbook.txt
  3. # words.txt
  4. ........................................................................................................................
  5.  
  6. ability
  7. able
  8. aboard
  9. about
  10. above
  11. accept
  12. accident
  13. according
  14. account
  15. accurate
  16. acres
  17. across
  18. act
  19. action
  20. active
  21. activity
  22. actual
  23. actually
  24. add
  25. addition
  26. additional
  27. adjective
  28. adult
  29. adventure
  30. advice
  31. affect
  32. afraid
  33. after
  34. afternoon
  35. again
  36. against
  37. age
  38. ago
  39. agree
  40. ahead
  41. aid
  42. air
  43. airplane
  44. alike
  45. alive
  46. all
  47. allow
  48. almost
  49. alone
  50. along
  51. aloud
  52. alphabet
  53. already
  54. also
  55. although
  56. am
  57. among
  58. amount
  59. ancient
  60. angle
  61. angry
  62. animal
  63. announced
  64. another
  65. answer
  66. ants
  67. any
  68. anybody
  69. anyone
  70. anything
  71. anyway
  72. anywhere
  73. apart
  74. apartment
  75. appearance
  76. apple
  77. applied
  78. appropriate
  79. are
  80. area
  81. arm
  82. army
  83. around
  84. arrange
  85. arrangement
  86. arrive
  87. arrow
  88. art
  89. article
  90. as
  91. aside
  92. ask
  93. asleep
  94. at
  95. ate
  96. atmosphere
  97. atom
  98. atomic
  99. attached
  100. attack
  101. attempt
  102. attention
  103. audience
  104. author
  105. automobile
  106. available
  107. average
  108. avoid
  109. aware
  110. away
  111. baby
  112. back
  113. bad
  114. badly
  115. bag
  116. balance
  117. ball
  118. balloon
  119. band
  120. bank
  121. bar
  122. bare
  123. bark
  124. barn
  125. base
  126. baseball
  127. basic
  128. basis
  129. basket
  130. bat
  131. battle
  132. be
  133. bean
  134. bear
  135. beat
  136. beautiful
  137. beauty
  138. became
  139. because
  140. become
  141. becoming
  142. bee
  143. been
  144. before
  145. began
  146. beginning
  147. begun
  148. behavior
  149. behind
  150. being
  151. believed
  152. bell
  153. belong
  154. below
  155. belt
  156. bend
  157. beneath
  158. bent
  159. beside
  160. best
  161. bet
  162. better
  163. between
  164. beyond
  165. bicycle
  166. bigger
  167. biggest
  168. bill
  169. birds
  170. birth
  171. birthday
  172. bit
  173. bite
  174. black
  175. blank
  176. blanket
  177. blew
  178. blind
  179. block
  180. blood
  181. blow
  182. blue
  183. board
  184. boat
  185. body
  186. bone
  187. book
  188. border
  189. born
  190. both
  191. bottle
  192. bottom
  193. bound
  194. bow
  195. bowl
  196. box
  197. boy
  198. brain
  199. branch
  200. brass
  201. brave
  202. bread
  203. break
  204. breakfast
  205. breath
  206. breathe
  207. breathing
  208. breeze
  209. brick
  210. bridge
  211. brief
  212. bright
  213. bring
  214. broad
  215. broke
  216. broken
  217. brother
  218. brought
  219. brown
  220. brush
  221. buffalo
  222. build
  223. building
  224. built
  225. buried
  226. burn
  227. burst
  228. bus
  229. bush
  230. business
  231. busy
  232. but
  233. butter
  234. buy
  235. by
  236. cabin
  237. cage
  238. cake
  239. call
  240. calm
  241. came
  242. camera
  243. camp
  244. can
  245. canal
  246. cannot
  247. cap
  248. capital
  249. captain
  250. captured
  251. car
  252. carbon
  253. card
  254. care
  255. careful
  256. carefully
  257. carried
  258. carry
  259. case
  260. cast
  261. castle
  262. cat
  263. catch
  264. cattle
  265. caught
  266. cause
  267. cave
  268. cell
  269. cent
  270. center
  271. central
  272. century
  273. certain
  274. certainly
  275. chain
  276. chair
  277. chamber
  278. chance
  279. change
  280. changing
  281. chapter
  282. character
  283. characteristic
  284. charge
  285. chart
  286. check
  287. cheese
  288. chemical
  289. chest
  290. chicken
  291. chief
  292. child
  293. children
  294. choice
  295. choose
  296. chose
  297. chosen
  298. church
  299. circle
  300. circus
  301. citizen
  302. city
  303. class
  304. classroom
  305. claws
  306. clay
  307. clean
  308. clear
  309. clearly
  310. climate
  311. climb
  312. clock
  313. close
  314. closely
  315. closer
  316. cloth
  317. clothes
  318. clothing
  319. cloud
  320. club
  321. coach
  322. coal
  323. coast
  324. coat
  325. coffee
  326. cold
  327. collect
  328. college
  329. colony
  330. color
  331. column
  332. combination
  333. combine
  334. come
  335. comfortable
  336. coming
  337. command
  338. common
  339. community
  340. company
  341. compare
  342. compass
  343. complete
  344. completely
  345. complex
  346. composed
  347. composition
  348. compound
  349. concerned
  350. condition
  351. congress
  352. connected
  353. consider
  354. consist
  355. consonant
  356. constantly
  357. construction
  358. contain
  359. continent
  360. continued
  361. contrast
  362. control
  363. conversation
  364. cook
  365. cookies
  366. cool
  367. copper
  368. copy
  369. corn
  370. corner
  371. correct
  372. correctly
  373. cost
  374. cotton
  375. could
  376. count
  377. country
  378. couple
  379. courage
  380. course
  381. court
  382. cover
  383. cow
  384. cowboy
  385. crack
  386. cream
  387. create
  388. creature
  389. crew
  390. crop
  391. cross
  392. crowd
  393. cry
  394. cup
  395. curious
  396. current
  397. curve
  398. customs
  399. cut
  400. cutting
  401. daily
  402. damage
  403. dance
  404. danger
  405. dangerous
  406. dark
  407. darkness
  408. date
  409. daughter
  410. dawn
  411. day
  412. dead
  413. deal
  414. dear
  415. death
  416. decide
  417. declared
  418. deep
  419. deeply
  420. deer
  421. definition
  422. degree
  423. depend
  424. depth
  425. describe
  426. desert
  427. design
  428. desk
  429. detail
  430. determine
  431. develop
  432. development
  433. diagram
  434. diameter
  435. did
  436. die
  437. differ
  438. difference
  439. different
  440. difficult
  441. difficulty
  442. dig
  443. dinner
  444. direct
  445. direction
  446. directly
  447. dirt
  448. dirty
  449. disappear
  450. discover
  451. discovery
  452. discuss
  453. discussion
  454. disease
  455. dish
  456. distance
  457. distant
  458. divide
  459. division
  460. do
  461. doctor
  462. does
  463. dog
  464. doing
  465. doll
  466. dollar
  467. done
  468. donkey
  469. door
  470. dot
  471. double
  472. doubt
  473. down
  474. dozen
  475. draw
  476. drawn
  477. dream
  478. dress
  479. drew
  480. dried
  481. drink
  482. drive
  483. driven
  484. driver
  485. driving
  486. drop
  487. dropped
  488. drove
  489. dry
  490. duck
  491. due
  492. dug
  493. dull
  494. during
  495. dust
  496. duty
  497. each
  498. eager
  499. ear
  500. earlier
  501. early
  502. earn
  503. earth
  504. easier
  505. easily
  506. east
  507. easy
  508. eat
  509. eaten
  510. edge
  511. education
  512. effect
  513. effort
  514. egg
  515. eight
  516. either
  517. electric
  518. electricity
  519. element
  520. elephant
  521. eleven
  522. else
  523. empty
  524. end
  525. enemy
  526. energy
  527. engine
  528. engineer
  529. enjoy
  530. enough
  531. enter
  532. entire
  533. entirely
  534. environment
  535. equal
  536. equally
  537. equator
  538. equipment
  539. escape
  540. especially
  541. essential
  542. establish
  543. even
  544. evening
  545. event
  546. eventually
  547. ever
  548. every
  549. everybody
  550. everyone
  551. everything
  552. everywhere
  553. evidence
  554. exact
  555. exactly
  556. examine
  557. example
  558. excellent
  559. except
  560. exchange
  561. excited
  562. excitement
  563. exciting
  564. exclaimed
  565. exercise
  566. exist
  567. expect
  568. experience
  569. experiment
  570. explain
  571. explanation
  572. explore
  573. express
  574. expression
  575. extra
  576. eye
  577. face
  578. facing
  579. fact
  580. factor
  581. factory
  582. failed
  583. fair
  584. fairly
  585. fall
  586. fallen
  587. familiar
  588. family
  589. famous
  590. far
  591. farm
  592. farmer
  593. farther
  594. fast
  595. fastened
  596. faster
  597. fat
  598. father
  599. favorite
  600. fear
  601. feathers
  602. feature
  603. fed
  604. feed
  605. feel
  606. feet
  607. fell
  608. fellow
  609. felt
  610. fence
  611. few
  612. fewer
  613. field
  614. fierce
  615. fifteen
  616. fifth
  617. fifty
  618. fight
  619. fighting
  620. figure
  621. fill
  622. film
  623. final
  624. finally
  625. find
  626. fine
  627. finest
  628. finger
  629. finish
  630. fire
  631. fireplace
  632. firm
  633. first
  634. fish
  635. five
  636. fix
  637. flag
  638. flame
  639. flat
  640. flew
  641. flies
  642. flight
  643. floating
  644. floor
  645. flow
  646. flower
  647. fly
  648. fog
  649. folks
  650. follow
  651. food
  652. foot
  653. football
  654. for
  655. force
  656. foreign
  657. forest
  658. forget
  659. forgot
  660. forgotten
  661. form
  662. former
  663. fort
  664. forth
  665. forty
  666. forward
  667. fought
  668. found
  669. four
  670. fourth
  671. fox
  672. frame
  673. free
  674. freedom
  675. frequently
  676. fresh
  677. friend
  678. friendly
  679. frighten
  680. frog
  681. from
  682. front
  683. frozen
  684. fruit
  685. fuel
  686. full
  687. fully
  688. fun
  689. function
  690. funny
  691. fur
  692. furniture
  693. further
  694. future
  695. gain
  696. game
  697. garage
  698. garden
  699. gas
  700. gasoline
  701. gate
  702. gather
  703. gave
  704. general
  705. generally
  706. gentle
  707. gently
  708. get
  709. getting
  710. giant
  711. gift
  712. girl
  713. give
  714. given
  715. giving
  716. glad
  717. glass
  718. globe
  719. go
  720. goes
  721. gold
  722. golden
  723. gone
  724. good
  725. goose
  726. got
  727. government
  728. grabbed
  729. grade
  730. gradually
  731. grain
  732. grandfather
  733. grandmother
  734. graph
  735. grass
  736. gravity
  737. gray
  738. great
  739. greater
  740. greatest
  741. greatly
  742. green
  743. grew
  744. ground
  745. group
  746. grow
  747. grown
  748. growth
  749. guard
  750. guess
  751. guide
  752. gulf
  753. gun
  754. habit
  755. had
  756. hair
  757. half
  758. halfway
  759. hall
  760. hand
  761. handle
  762. handsome
  763. hang
  764. happen
  765. happened
  766. happily
  767. happy
  768. harbor
  769. hard
  770. harder
  771. hardly
  772. has
  773. hat
  774. have
  775. having
  776. hay
  777. he
  778. headed
  779. heading
  780. health
  781. heard
  782. hearing
  783. heart
  784. heat
  785. heavy
  786. height
  787. held
  788. hello
  789. help
  790. helpful
  791. her
  792. herd
  793. here
  794. herself
  795. hidden
  796. hide
  797. high
  798. higher
  799. highest
  800. highway
  801. hill
  802. him
  803. himself
  804. his
  805. history
  806. hit
  807. hold
  808. hole
  809. hollow
  810. home
  811. honor
  812. hope
  813. horn
  814. horse
  815. hospital
  816. hot
  817. hour
  818. house
  819. how
  820. however
  821. huge
  822. human
  823. hundred
  824. hung
  825. hungry
  826. hunt
  827. hunter
  828. hurried
  829. hurry
  830. hurt
  831. husband
  832. ice
  833. idea
  834. identity
  835. if
  836. ill
  837. image
  838. imagine
  839. immediately
  840. importance
  841. important
  842. impossible
  843. improve
  844. in
  845. inch
  846. include
  847. including
  848. income
  849. increase
  850. indeed
  851. independent
  852. indicate
  853. individual
  854. industrial
  855. industry
  856. influence
  857. information
  858. inside
  859. instance
  860. instant
  861. instead
  862. instrument
  863. interest
  864. interior
  865. into
  866. introduced
  867. invented
  868. involved
  869. iron
  870. is
  871. island
  872. it
  873. its
  874. itself
  875. jack
  876. jar
  877. jet
  878. job
  879. join
  880. joined
  881. journey
  882. joy
  883. judge
  884. jump
  885. jungle
  886. just
  887. keep
  888. kept
  889. key
  890. kids
  891. kill
  892. kind
  893. kitchen
  894. knew
  895. knife
  896. know
  897. knowledge
  898. known
  899. label
  900. labor
  901. lack
  902. lady
  903. laid
  904. lake
  905. lamp
  906. land
  907. language
  908. large
  909. larger
  910. largest
  911. last
  912. late
  913. later
  914. laugh
  915. law
  916. lay
  917. layers
  918. lead
  919. leader
  920. leaf
  921. learn
  922. least
  923. leather
  924. leave
  925. leaving
  926. led
  927. left
  928. leg
  929. length
  930. lesson
  931. let
  932. letter
  933. level
  934. library
  935. lie
  936. life
  937. lift
  938. light
  939. like
  940. likely
  941. limited
  942. line
  943. lion
  944. lips
  945. liquid
  946. list
  947. listen
  948. little
  949. live
  950. living
  951. load
  952. local
  953. locate
  954. location
  955. log
  956. lonely
  957. long
  958. longer
  959. look
  960. loose
  961. lose
  962. loss
  963. lost
  964. lot
  965. loud
  966. love
  967. lovely
  968. low
  969. lower
  970. luck
  971. lucky
  972. lunch
  973. lungs
  974. lying
  975. machine
  976. machinery
  977. mad
  978. made
  979. magic
  980. magnet
  981. mail
  982. main
  983. mainly
  984. major
  985. make
  986. making
  987. man
  988. managed
  989. manner
  990. manufacturing
  991. many
  992. map
  993. mark
  994. market
  995. married
  996. mass
  997. massage
  998. master
  999. material
  1000. mathematics
  1001. matter
  1002. may
  1003. maybe
  1004. me
  1005. meal
  1006. mean
  1007. means
  1008. meant
  1009. measure
  1010. meat
  1011. medicine
  1012. meet
  1013. melted
  1014. member
  1015. memory
  1016. men
  1017. mental
  1018. merely
  1019. met
  1020. metal
  1021. method
  1022. mice
  1023. middle
  1024. might
  1025. mighty
  1026. mile
  1027. military
  1028. milk
  1029. mill
  1030. mind
  1031. mine
  1032. minerals
  1033. minute
  1034. mirror
  1035. missing
  1036. mission
  1037. mistake
  1038. mix
  1039. mixture
  1040. model
  1041. modern
  1042. molecular
  1043. moment
  1044. money
  1045. monkey
  1046. month
  1047. mood
  1048. moon
  1049. more
  1050. morning
  1051. most
  1052. mostly
  1053. mother
  1054. motion
  1055. motor
  1056. mountain
  1057. mouse
  1058. mouth
  1059. move
  1060. movement
  1061. movie
  1062. moving
  1063. mud
  1064. muscle
  1065. music
  1066. musical
  1067. must
  1068. my
  1069. myself
  1070. mysterious
  1071. nails
  1072. name
  1073. nation
  1074. national
  1075. native
  1076. natural
  1077. naturally
  1078. nature
  1079. near
  1080. nearby
  1081. nearer
  1082. nearest
  1083. nearly
  1084. necessary
  1085. neck
  1086. needed
  1087. needle
  1088. needs
  1089. negative
  1090. neighbor
  1091. neighborhood
  1092. nervous
  1093. nest
  1094. never
  1095. new
  1096. news
  1097. newspaper
  1098. next
  1099. nice
  1100. night
  1101. nine
  1102. no
  1103. nobody
  1104. nodded
  1105. noise
  1106. none
  1107. noon
  1108. nor
  1109. north
  1110. nose
  1111. not
  1112. note
  1113. noted
  1114. nothing
  1115. notice
  1116. noun
  1117. now
  1118. number
  1119. numeral
  1120. nuts
  1121. object
  1122. observe
  1123. obtain
  1124. occasionally
  1125. occur
  1126. ocean
  1127. of
  1128. off
  1129. offer
  1130. office
  1131. officer
  1132. official
  1133. oil
  1134. old
  1135. older
  1136. oldest
  1137. on
  1138. once
  1139. one
  1140. only
  1141. onto
  1142. open
  1143. operation
  1144. opinion
  1145. opportunity
  1146. opposite
  1147. or
  1148. orange
  1149. orbit
  1150. order
  1151. ordinary
  1152. organization
  1153. organized
  1154. origin
  1155. original
  1156. other
  1157. ought
  1158. our
  1159. ourselves
  1160. out
  1161. outer
  1162. outline
  1163. outside
  1164. over
  1165. own
  1166. owner
  1167. oxygen
  1168. pack
  1169. package
  1170. page
  1171. paid
  1172. pain
  1173. paint
  1174. pair
  1175. palace
  1176. pale
  1177. pan
  1178. paper
  1179. paragraph
  1180. parallel
  1181. parent
  1182. park
  1183. part
  1184. particles
  1185. particular
  1186. particularly
  1187. partly
  1188. parts
  1189. party
  1190. pass
  1191. passage
  1192. past
  1193. path
  1194. pattern
  1195. pay
  1196. peace
  1197. pen
  1198. pencil
  1199. people
  1200. per
  1201. percent
  1202. perfect
  1203. perfectly
  1204. perhaps
  1205. period
  1206. person
  1207. personal
  1208. pet
  1209. phrase
  1210. physical
  1211. piano
  1212. pick
  1213. picture
  1214. pictured
  1215. pie
  1216. piece
  1217. pig
  1218. pile
  1219. pilot
  1220. pine
  1221. pink
  1222. pipe
  1223. pitch
  1224. place
  1225. plain
  1226. plan
  1227. plane
  1228. planet
  1229. planned
  1230. planning
  1231. plant
  1232. plastic
  1233. plate
  1234. plates
  1235. play
  1236. pleasant
  1237. please
  1238. pleasure
  1239. plenty
  1240. plural
  1241. plus
  1242. pocket
  1243. poem
  1244. poet
  1245. poetry
  1246. point
  1247. pole
  1248. police
  1249. policeman
  1250. political
  1251. pond
  1252. pony
  1253. pool
  1254. poor
  1255. popular
  1256. population
  1257. porch
  1258. port
  1259. position
  1260. positive
  1261. possible
  1262. possibly
  1263. post
  1264. pot
  1265. potatoes
  1266. pound
  1267. pour
  1268. powder
  1269. power
  1270. powerful
  1271. practical
  1272. practice
  1273. prepare
  1274. present
  1275. president
  1276. press
  1277. pressure
  1278. pretty
  1279. prevent
  1280. previous
  1281. price
  1282. pride
  1283. primitive
  1284. principal
  1285. principle
  1286. printed
  1287. private
  1288. prize
  1289. probably
  1290. problem
  1291. process
  1292. produce
  1293. product
  1294. production
  1295. program
  1296. progress
  1297. promised
  1298. proper
  1299. properly
  1300. property
  1301. protection
  1302. proud
  1303. prove
  1304. provide
  1305. public
  1306. pull
  1307. pupil
  1308. pure
  1309. purple
  1310. purpose
  1311. push
  1312. put
  1313. putting
  1314. quarter
  1315. queen
  1316. question
  1317. quick
  1318. quickly
  1319. quiet
  1320. quietly
  1321. quite
  1322. rabbit
  1323. race
  1324. radio
  1325. railroad
  1326. rain
  1327. raise
  1328. ran
  1329. ranch
  1330. range
  1331. rapidly
  1332. rate
  1333. rather
  1334. raw
  1335. rays
  1336. reach
  1337. read
  1338. reader
  1339. ready
  1340. real
  1341. realize
  1342. rear
  1343. reason
  1344. recall
  1345. receive
  1346. recent
  1347. recently
  1348. recognize
  1349. record
  1350. red
  1351. refer
  1352. refused
  1353. region
  1354. regular
  1355. related
  1356. relationship
  1357. religious
  1358. remain
  1359. remarkable
  1360. remember
  1361. remove
  1362. repeat
  1363. replace
  1364. replied
  1365. report
  1366. represent
  1367. require
  1368. research
  1369. respect
  1370. rest
  1371. result
  1372. return
  1373. review
  1374. rhyme
  1375. rhythm
  1376. rice
  1377. rich
  1378. ride
  1379. riding
  1380. right
  1381. ring
  1382. rise
  1383. rising
  1384. river
  1385. road
  1386. roar
  1387. rock
  1388. rocket
  1389. rocky
  1390. rod
  1391. roll
  1392. roof
  1393. room
  1394. root
  1395. rope
  1396. rose
  1397. rough
  1398. round
  1399. route
  1400. row
  1401. rubbed
  1402. rubber
  1403. rule
  1404. ruler
  1405. run
  1406. running
  1407. rush
  1408. sad
  1409. saddle
  1410. safe
  1411. safety
  1412. said
  1413. sail
  1414. sale
  1415. salmon
  1416. salt
  1417. same
  1418. sand
  1419. sang
  1420. sat
  1421. satellites
  1422. satisfied
  1423. save
  1424. saved
  1425. saw
  1426. say
  1427. scale
  1428. scared
  1429. scene
  1430. school
  1431. science
  1432. scientific
  1433. scientist
  1434. score
  1435. screen
  1436. sea
  1437. search
  1438. season
  1439. seat
  1440. second
  1441. secret
  1442. section
  1443. see
  1444. seed
  1445. seeing
  1446. seems
  1447. seen
  1448. seldom
  1449. select
  1450. selection
  1451. sell
  1452. send
  1453. sense
  1454. sent
  1455. sentence
  1456. separate
  1457. series
  1458. serious
  1459. serve
  1460. service
  1461. sets
  1462. setting
  1463. settle
  1464. settlers
  1465. seven
  1466. several
  1467. shade
  1468. shadow
  1469. shake
  1470. shaking
  1471. shall
  1472. shallow
  1473. shape
  1474. share
  1475. sharp
  1476. she
  1477. sheep
  1478. sheet
  1479. shelf
  1480. shells
  1481. shelter
  1482. shine
  1483. shinning
  1484. ship
  1485. shirt
  1486. shoe
  1487. shoot
  1488. shop
  1489. shore
  1490. short
  1491. shorter
  1492. shot
  1493. should
  1494. shoulder
  1495. shout
  1496. show
  1497. shown
  1498. shut
  1499. sick
  1500. sides
  1501. sight
  1502. sign
  1503. signal
  1504. silence
  1505. silent
  1506. silk
  1507. silly
  1508. silver
  1509. similar
  1510. simple
  1511. simplest
  1512. simply
  1513. since
  1514. sing
  1515. single
  1516. sink
  1517. sister
  1518. sit
  1519. sitting
  1520. situation
  1521. six
  1522. size
  1523. skill
  1524. skin
  1525. sky
  1526. slabs
  1527. slave
  1528. sleep
  1529. slept
  1530. slide
  1531. slight
  1532. slightly
  1533. slip
  1534. slipped
  1535. slope
  1536. slow
  1537. slowly
  1538. small
  1539. smaller
  1540. smallest
  1541. smell
  1542. smile
  1543. smoke
  1544. smooth
  1545. snake
  1546. snow
  1547. so
  1548. soap
  1549. social
  1550. society
  1551. soft
  1552. softly
  1553. soil
  1554. solar
  1555. sold
  1556. soldier
  1557. solid
  1558. solution
  1559. solve
  1560. some
  1561. somebody
  1562. somehow
  1563. someone
  1564. something
  1565. sometime
  1566. somewhere
  1567. son
  1568. song
  1569. soon
  1570. sort
  1571. sound
  1572. source
  1573. south
  1574. southern
  1575. space
  1576. speak
  1577. special
  1578. species
  1579. specific
  1580. speech
  1581. speed
  1582. spell
  1583. spend
  1584. spent
  1585. spider
  1586. spin
  1587. spirit
  1588. spite
  1589. split
  1590. spoken
  1591. sport
  1592. spread
  1593. spring
  1594. square
  1595. stage
  1596. stairs
  1597. stand
  1598. standard
  1599. star
  1600. stared
  1601. start
  1602. state
  1603. statement
  1604. station
  1605. stay
  1606. steady
  1607. steam
  1608. steel
  1609. steep
  1610. stems
  1611. step
  1612. stepped
  1613. stick
  1614. stiff
  1615. still
  1616. stock
  1617. stomach
  1618. stone
  1619. stood
  1620. stop
  1621. stopped
  1622. store
  1623. storm
  1624. story
  1625. stove
  1626. straight
  1627. strange
  1628. stranger
  1629. straw
  1630. stream
  1631. street
  1632. strength
  1633. stretch
  1634. strike
  1635. string
  1636. strip
  1637. strong
  1638. stronger
  1639. struck
  1640. structure
  1641. struggle
  1642. stuck
  1643. student
  1644. studied
  1645. studying
  1646. subject
  1647. substance
  1648. success
  1649. successful
  1650. such
  1651. sudden
  1652. suddenly
  1653. sugar
  1654. suggest
  1655. suit
  1656. sum
  1657. summer
  1658. sun
  1659. sunlight
  1660. supper
  1661. supply
  1662. support
  1663. suppose
  1664. sure
  1665. surface
  1666. surprise
  1667. surrounded
  1668. swam
  1669. sweet
  1670. swept
  1671. swim
  1672. swimming
  1673. swing
  1674. swung
  1675. syllable
  1676. symbol
  1677. system
  1678. table
  1679. tail
  1680. take
  1681. taken
  1682. tales
  1683. talk
  1684. tall
  1685. tank
  1686. tape
  1687. task
  1688. taste
  1689. taught
  1690. tax
  1691. tea
  1692. teach
  1693. teacher
  1694. team
  1695. tears
  1696. teeth
  1697. telephone
  1698. television
  1699. tell
  1700. temperature
  1701. ten
  1702. tent
  1703. term
  1704. terrible
  1705. test
  1706. than
  1707. thank
  1708. that
  1709. thee
  1710. them
  1711. themselves
  1712. then
  1713. theory
  1714. there
  1715. therefore
  1716. these
  1717. they
  1718. thick
  1719. thin
  1720. thing
  1721. think
  1722. third
  1723. thirty
  1724. this
  1725. those
  1726. thou
  1727. though
  1728. thought
  1729. thousand
  1730. thread
  1731. three
  1732. threw
  1733. throat
  1734. through
  1735. throughout
  1736. throw
  1737. thrown
  1738. thumb
  1739. thus
  1740. thy
  1741. tide
  1742. tie
  1743. tight
  1744. tightly
  1745. till
  1746. time
  1747. tin
  1748. tiny
  1749. tip
  1750. tired
  1751. title
  1752. to
  1753. tobacco
  1754. today
  1755. together
  1756. told
  1757. tomorrow
  1758. tone
  1759. tongue
  1760. tonight
  1761. too
  1762. took
  1763. tool
  1764. top
  1765. topic
  1766. torn
  1767. total
  1768. touch
  1769. toward
  1770. tower
  1771. town
  1772. toy
  1773. trace
  1774. track
  1775. trade
  1776. traffic
  1777. trail
  1778. train
  1779. transportation
  1780. trap
  1781. travel
  1782. treated
  1783. tree
  1784. triangle
  1785. tribe
  1786. trick
  1787. tried
  1788. trip
  1789. troops
  1790. tropical
  1791. trouble
  1792. truck
  1793. trunk
  1794. truth
  1795. try
  1796. tube
  1797. tune
  1798. turn
  1799. twelve
  1800. twenty
  1801. twice
  1802. two
  1803. type
  1804. typical
  1805. uncle
  1806. under
  1807. underline
  1808. understanding
  1809. unhappy
  1810. union
  1811. unit
  1812. universe
  1813. unknown
  1814. unless
  1815. until
  1816. unusual
  1817. up
  1818. upon
  1819. upper
  1820. upward
  1821. us
  1822. use
  1823. useful
  1824. using
  1825. usual
  1826. usually
  1827. valley
  1828. valuable
  1829. value
  1830. vapor
  1831. variety
  1832. various
  1833. vast
  1834. vegetable
  1835. verb
  1836. vertical
  1837. very
  1838. vessels
  1839. victory
  1840. view
  1841. village
  1842. visit
  1843. visitor
  1844. voice
  1845. volume
  1846. vote
  1847. vowel
  1848. voyage
  1849. wagon
  1850. wait
  1851. walk
  1852. wall
  1853. want
  1854. war
  1855. warm
  1856. warn
  1857. was
  1858. wash
  1859. waste
  1860. watch
  1861. water
  1862. wave
  1863. way
  1864. we
  1865. weak
  1866. wealth
  1867. wear
  1868. weather
  1869. week
  1870. weigh
  1871. weight
  1872. welcome
  1873. well
  1874. went
  1875. were
  1876. west
  1877. western
  1878. wet
  1879. whale
  1880. what
  1881. whatever
  1882. wheat
  1883. wheel
  1884. when
  1885. whenever
  1886. where
  1887. wherever
  1888. whether
  1889. which
  1890. while
  1891. whispered
  1892. whistle
  1893. white
  1894. who
  1895. whole
  1896. whom
  1897. whose
  1898. why
  1899. wide
  1900. widely
  1901. wife
  1902. wild
  1903. will
  1904. willing
  1905. win
  1906. wind
  1907. window
  1908. wing
  1909. winter
  1910. wire
  1911. wise
  1912. wish
  1913. with
  1914. within
  1915. without
  1916. wolf
  1917. women
  1918. won
  1919. wonder
  1920. wonderful
  1921. wood
  1922. wooden
  1923. wool
  1924. word
  1925. wore
  1926. work
  1927. worker
  1928. world
  1929. worried
  1930. worry
  1931. worse
  1932. worth
  1933. would
  1934. wrapped
  1935. write
  1936. writer
  1937. writing
  1938. written
  1939. wrong
  1940. wrote
  1941. yard
  1942. year
  1943. yellow
  1944. yes
  1945. yesterday
  1946. yet
  1947. you
  1948. young
  1949. younger
  1950. your
  1951. yourself
  1952. youth
  1953. zero
  1954. zoo
  1955.  
  1956.  
  1957.  
  1958.  
  1959. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  1960. # Codez
  1961.  
  1962.  
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968. import argparse
  1969. import random
  1970. import math
  1971.  
  1972. # extract words from words.txt
  1973. # assumes each word is on its own line, no quotes/spaces/etc.
  1974. def words_from_file():
  1975.   f = open('words.txt', 'r')
  1976.   lines = f.readlines()
  1977.   f.close()
  1978.  
  1979.   # remove \n
  1980.   words = [line[:-1] for line in lines]
  1981.   return words
  1982.  
  1983. # extracts a random word from a list of words
  1984. def random_word(words):
  1985.   # SystemRandom relies on /dev/urandom
  1986.   r = random.SystemRandom()
  1987.   return r.choice(words)
  1988.  
  1989. # extracts n random words from a list of words
  1990. def random_words(words, n):
  1991.   chosen = []
  1992.   for i in range(n):
  1993.     new_word = random_word(words)
  1994.     chosen.append(new_word)
  1995.   return chosen
  1996.  
  1997. def entropy_per_word(words):
  1998.   n = len(words)
  1999.   return math.log(n, 2)
  2000.  
  2001. def args():
  2002.   parser = argparse.ArgumentParser(description='Randomly generate a password from a list of words')
  2003.   parser.add_argument('-n', '--num', help='Number of words to generate. Defaults to 5.', type=int, default=5)
  2004.   args = parser.parse_args()
  2005.   return args
  2006.  
  2007. def run(num):
  2008.   words = words_from_file()
  2009.   chosen = random_words(words, num)
  2010.   entropy = entropy_per_word(words)
  2011.   total_entropy = entropy*num
  2012.  
  2013.   print "chosen words:"
  2014.   for word in chosen:
  2015.     print "  " + word
  2016.   print "entropy per word: " + str(entropy)
  2017.   print "total entropy: " + str(total_entropy)
  2018.  
  2019. if __name__ == '__main__':
  2020.   args = args()
  2021.   n = args.num
  2022.   run(n)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement