You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Being able to report all saved wifi networks and their passwords would be great. After doing that, and saving them to a file, one could safely remove all preferred networks, and still always be able to log into all past networks (by consulting the saved list).
Until now, I thought it would be necessary to type in the password for each network, but I saw that the security command has an unlock keychain command. Using this it might be possible to produce a mass download of the passwords.
Assuming this is possible, we would want to be really sure we do not leave the keychain in an unlocked state. Ways to handle this might include using ensure to re-lock it, query it after done to verify, and, in case the program is terminated before it completes, print out a serious warning message before starting the whole operation.
Steps:
Investigate the security command and test unlocking and relocking the keychain. If this does not work, terminate working on this issue.
Write a method that outputs a dire warning, unlocks the keychain, executes a passed block, and then closes the keychain in an ensure clause. Signature should be something like this: with_unlocked_keychain(keychain_name).
Exercise this method by iterating over the saved network names, getting the passwords (some will not have a password).
Determine best way to fit this in to the user interface.
Implement this all in code.
The text was updated successfully, but these errors were encountered:
Being able to report all saved wifi networks and their passwords would be great. After doing that, and saving them to a file, one could safely remove all preferred networks, and still always be able to log into all past networks (by consulting the saved list).
Until now, I thought it would be necessary to type in the password for each network, but I saw that the
security
command has anunlock
keychain command. Using this it might be possible to produce a mass download of the passwords.Assuming this is possible, we would want to be really sure we do not leave the keychain in an unlocked state. Ways to handle this might include using ensure to re-lock it, query it after done to verify, and, in case the program is terminated before it completes, print out a serious warning message before starting the whole operation.
Steps:
security
command and test unlocking and relocking the keychain. If this does not work, terminate working on this issue.ensure
clause. Signature should be something like this:with_unlocked_keychain(keychain_name)
.The text was updated successfully, but these errors were encountered: