PSK Generator
Added a password generator to match iOS ability.
Still a work in progress, more putting this out to have a place for note taking:
TODO:
Button changes input value ✅
PSK length dropdown changes password generation ✅
PSK key generation ✅
PSK loading from device ✅
PSK saving to device ⌛
PSK length validation ⌛
To generate a password on iOS:
https://github.com/meshtastic/Meshtastic-Apple/blob/07c1018b538ea3bedd72ed243d9041d723650cb4/Meshtastic/Views/Settings/Channels.swift#L17
We use SecRandomCopyBytes() (https://developer.apple.com/documentation/security/1399291-secrandomcopybytes) to create a random input and then we encode it using base64EncodedString()
Thanks yall