Improve tool with passphrase input