-
Notifications
You must be signed in to change notification settings - Fork 269
Feature: passwords instead of keyfiles #410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Why not use https://github.com/svpcom/wfb-ng/wiki/Drone-auto-provisioning ? |
Sorry, I guess I should have been clearer, I meant as options to It looks like passwords will also let you have in effect multiple binds at once. Passwords wouldn't be mandatory by any means but would just be a convenience and could migrate to other tools later. |
How to derive pubkey/privkey keypair from the password? |
That's possible using libsodium's |
yes. |
Also if crypto_box_seed_keypair can generate keypair deterministically from the password, then the easiest solution will to write two screen of code utility (like wfb_keygen.c) that will just generate keypair from the password and no other patches for wfb_rx/tx are needed |
Also original password will not be revealed to public because only generated keys will be stored in system |
I will do some investigation but for my purposes it would be useful to not have another utility. |
Just add additional command-line option and crypto_box_see_keypair here: Line 58 in 1d14a1a
|
I think the implementation you have just added is not correct. You should generate I still also would like to refactor the stuff out of the generator utility and have it as an option direct to |
Libsodium crypto_box implementation allows to use such identical keypairs for both sides. I've already tested them. But I'll implement your sugesstion to have clean encryption logic. Argon2 key derivation eats alot of memory and cpu (because it provides bruteforce protection) and recalculate it during every wfb_tx/rx start will be very slow and can lead to out of memory condition (especially on cheap devices like openipc cameras and openwrt routers). Also having password as cmdline argument vs key in the file is less secure, because every user ( or process in system) can run |
Would you accept a PR to implement using passwords as a command line option instead of having to generate and share keyfiles? It should be straightforward to do using the libsodium API and would allow smoother setup.
The text was updated successfully, but these errors were encountered: