I’m could not find any github-discussion about password strength of the wallet encryption passphrase. By default all types of weak passwords are allowed (even without warning) to encrypt your wallet.
Would it not be possible to add a password strength police to the RPC command as well to the GUI form?
Suggestion:
RPC: the encryptwallet
RPC command should reject a weak passphrase unless a -force
arg is given (or we could even drop the -force arg and/or only allow weak passphrase if a startup-arg -allowweakpassphrase
was set).
GUI: while entering a encryption passphrase there could be a green/orange/red icon to show the password strength. Using a “orange” or “red” password is forbidden unless he clicks through warnings or had -allowweakpassphrase
enabled.