#!/bin/sh
#Copyright (C) 2021 Blau Araujo <blau@debxp.org>
#License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
#This is free software: you are free to change and redistribute it.
#There is NO WARRANTY, to the extent permitted by law.

set -e

ref='6b7a04357a1882e7dad358f1ec8f5e8440fbb21e1cc49a3f11e75776bded686d
cbe200d105b64a14741fb9d75e827fc2e3444a8cc13f04de10bd0a1891e752d5'

test=$(wlangenpmk -p password -e essid|grep -E 'SHA1|SHA256'|cut -d" " -f3)
test "$ref" = "$test"
