#wifi #hash #password-hash #wpa #password #command-line-tool

app wpa-psk-cli

A command-line utility to compute the WPA-PSK of a Wi-FI SSID and passphrase

6 releases

0.1.5 Mar 6, 2024
0.1.4 May 18, 2023
0.1.2 Feb 16, 2023
0.1.1 Oct 3, 2022
0.1.0 May 28, 2022

#436 in Command line utilities

Download history 11/week @ 2024-02-26 169/week @ 2024-03-04 13/week @ 2024-03-11 9/week @ 2024-03-18 24/week @ 2024-04-01

53 downloads per month

MIT/Apache

16KB
168 lines

wpa-psk-cli

This is a command-line utility to compute the WPA pre-shared key of a Wi-Fi SSID and passphrase. See also the corresponding Rust library wpa-psk.

Usage

Hash a typical SSID and passphrase:

$ wpa-psk home password123
0xde811641af2c516ffd35cc6f851b3abf03c7c84fc703cfb580f1c0456943cdc0

Hash special albeit valid credentials:

$ wpa-psk "123abcABC.,-" "456defDEF *<:D"
0x8a366e5bc51cd5d8fbbeffacc5f1af23fac30e3ac93cdcc368fafbbf63a1085c

Hash invalid credentials:

$ wpa-psk --force bar 2short
0xcb5de4e4d23b2ab0bf5b9ba0fe8132c1e2af3bb52298ec801af8ad520cea3437

Installation

You can install the wpa-psk utility using Cargo:

$ cargo install wpa-psk-cli

License

This work is distributed under the terms of both, the MIT License and the Apache License, Version 2.0.

Contribution

Contributions are welcome! Please contact me via email.

See also

The popular wpa_supplicant comes with a similar tool, wpa_passphrase(8).

Dependencies

~1.6–2.3MB
~45K SLoC