0 comment

Uncover Hidden Wi-Fi Passwords on Your Mac with this Simple Terminal Trick


Ever found yourself in a situation where you desperately need a Wi-Fi password that you’ve used before on your Mac, but can’t seem to remember? Worry no more! In this blog post, we’ll show you an easy trick to retrieve any wi-fi password stored on your Mac using the Terminal.

Your Mac discreetly stores all Wi-Fi passwords you’ve ever used, and with a quick command in the Terminal, you can access those passwords in a matter of seconds. Here’s how to do it:

  1. Open Terminal on your Mac (you can find it in the Utilities folder or by using Spotlight Search).
  2. In the Terminal, type the following command:
security find-generic-password -wa "network-name-in-quotes"

Replace “network-name-in-quotes” with the name of the Wi-Fi network whose password you want to retrieve, enclosed in quotes. For example:

security find-generic-password -wa "Home Wi-Fi"
  1. Press Enter and, if prompted, enter your Mac’s admin password.
  2. The Terminal will then display the Wi-Fi password you’re looking for.

Keep in mind that this trick only works for networks you’ve previously connected to with your Mac. It won’t help you crack passwords for unknown networks.


This simple Terminal trick is a lifesaver for those moments when you need to recover a Wi-Fi password you’ve used before. Now you can easily access your stored passwords and stay connected without a hitch. Be sure to check out our blog for more Mac tips and tricks, as well as insights into cross-platform working between Apple, Microsoft, and Google products.

Leave a Reply

Required fields are marked *.

This site uses Akismet to reduce spam. Learn how your comment data is processed.