So basically need more code and might as well get group cipher, pairwise cipher and authentication suites ... at the same time. I have a list of network blocks (32) covering most possible combinations of suites and ciphers, ssid and psk, ascii, numeric passwords. I want to add on an 'expert' panel to the gui allowing drag'n'drop of the network blocks with editing to cover a lot of the possibilities, at least 32 of them anyway! Really this is partly catered for in the gui by having the option to edit config with geany, * etc ... but having drag'n'drop network blocks with variables auto-filled should be a good and easy thing to implement. Especially if they are selected as svg icons ....
WPA network block for WPA should be generated after pasword gui closes with something like
Code: Select all
ssid=`echo $details | cut -f3 -d'|' | cut -f2 -d'"'`
sect=`wpa_passphrase "$ssid" "$password" | grep -v '#' | grep -v -e '}' -e 'network={'`
Code: Select all
network={
$sect
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
}