| Crates.io | mac-wifi-password |
| lib.rs | mac-wifi-password |
| version | 0.1.0 |
| created_at | 2025-10-18 14:33:35.399112+00 |
| updated_at | 2025-10-18 14:33:35.399112+00 |
| description | A command-line tool to retrieve Wi-Fi passwords from macOS Keychain |
| homepage | |
| repository | https://github.com/alipiry/mac-wifi-password |
| max_upload_size | |
| id | 1889265 |
| size | 19,043 |
A command-line tool to retrieve Wi-Fi passwords stored in the macOS Keychain.
mac-wifi-password allows you to easily fetch saved Wi-Fi passwords from your macOS Keychain. It can automatically detect the currently connected Wi-Fi network or accept a specific SSID as an argument.
Once published, you can install it using Cargo:
cargo install mac-wifi-password
Clone the repository and build:
git clone https://github.com/alipiry/mac-wifi-password.git
cd mac-wifi-password
cargo build --release
mac-wifi-password [OPTIONS] [SSID]
SSID: The Wi-Fi network name (SSID). If omitted, the tool will attempt to detect the currently connected network.-d, --debug: Show debug information (commands run and stderr).-c, --copy: Copy the resulting password to the clipboard using pbcopy.Get the password for the currently connected Wi-Fi network:
mac-wifi-password
Get the password for a specific network:
mac-wifi-password "MyHomeNetwork"
Copy the password to clipboard:
mac-wifi-password -c
Show debug information:
mac-wifi-password -d "MyHomeNetwork"
security, airport, and networksetup commands)This tool accesses the macOS Keychain, which may prompt for authentication. Ensure you have the necessary permissions to read Keychain entries.
MIT License