# Module 6.2: Password checks

Using the terminal or parrot OS:

<span style="font-weight: bold;">PW check: works on newer versions of homebrew and pi</span>

- brew install cracklib (if not already installed)
- cracklib-check &lt;enter password to check&gt;
- <span style="background-color: rgb(236, 238, 168); color: rgb(102, 102, 102);">try with several passwords</span>
- optional format: <span style="font-style: italic;">echo "password123" \| cracklib-check</span>

<span style="font-weight: bold;">password generator:</span>

- <span style="font-style: italic;">pwgen -sy 16 5</span>
- generates 5 strong random 16-character passwords with symbols
- <span style="background-color: rgb(236, 238, 168); color: rgb(102, 102, 102);">generate a few passwords with this</span>

<span style="font-weight: bold;">install apg: auto pw generator</span>

- <span style="font-style: italic;">brew tap jzaleski/homebrew-jzaleski</span>
- <span style="font-style: italic;">brew install apg</span>
- generate a few passwords with this

<span style="font-weight: bold;">try it out:</span>

- <span style="font-style: italic;">apg -m 12 -x 16 -n 5</span>
- 5 passwords between 12 and 16 characters.

<div id="bkmrk--5">  
</div><span id="bkmrk-try-each-of-these-wi" style="font-weight: bold;"><span style="background-color: rgb(236, 238, 168); color: rgb(102, 102, 102);">Try each of these with cracklib-check at least three times</span></span><div id="bkmrk--6">  
</div>---

<small>Migrated from Apple Server Wiki. Original page ID: s2y1u3T8</small>