https://github.com/woile/wpa_passphrase_rs
A wpa_passphrase replacement to target multi os and distribute using nix
https://github.com/woile/wpa_passphrase_rs
flake nix nix-flake nixpkgs raspberry-pi rpi shell
Last synced: over 1 year ago
JSON representation
A wpa_passphrase replacement to target multi os and distribute using nix
- Host: GitHub
- URL: https://github.com/woile/wpa_passphrase_rs
- Owner: woile
- Created: 2022-12-28T09:03:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T07:15:48.000Z (over 3 years ago)
- Last Synced: 2025-03-27T05:04:40.426Z (over 1 year ago)
- Topics: flake, nix, nix-flake, nixpkgs, raspberry-pi, rpi, shell
- Language: Rust
- Homepage:
- Size: 13.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wpa_passphrase_rs
> Utility to create WPA PSK for raspberry pi
## About
Using `wpa_passphrase` on a mac can be tricky, my idea is to have it available on Nix,
to provision the raspberries from any Unix OS.
## Installation
```sh
nix profile install 'github:woile/wpa_passphrase_rs#wpa_passphrase'
```
Or if you want to try it in a shell
```sh
nix shell 'github:woile/wpa_passphrase_rs#wpa_passphrase'
```
## Usage
```sh
wpa_passphrase [ ssid ] [ passphrase ]
```
## Development
After making and commiting changes, remember to run
```sh
nix flake update
```
## Resources
- https://linux.die.net/man/8/wpa_passphrase
- https://www.rfc-editor.org/rfc/rfc2898#appendix-A.2
- https://github.com/aosp-mirror/platform_external_wpa_supplicant/blob/master/wpa_passphrase.c
## Comparison
Run this command in your shell to have a linux based wpa_passphrase
```
wpa_passphrase() {
docker run \
--rm \
--interactive \
--tty \
"backplane/wpa_passphrase" \
"$@"
}
```