Modify accepted length to be compatible with android app
Use ENV['MASTER_KEY'] if defined
Add config for default profile