An open API service indexing awesome lists of open source software.

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

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" \
"$@"
}
```