

App passwords can only be used with accounts that have 2-Step Verification turned on. To help keep your account secure, use "Sign in with Google" to connect apps to your Google Account.Īn app password is a 16-digit passcode that gives a less secure app or device permission to access your Google Account. Private static final String CHAR_UPPERCASE = CHAR_LOWERCASE.Tip: App passwords aren’t recommended and are unnecessary in most cases. Private static final String CHAR_LOWERCASE = "abcdefghijklmnopqrstuvwxyz" Shuffle the result in step 7 to produce a random order.Combine all the above 20 random characters.Get random two characters from a list of special characters Get another random 12 characters from a list of supported characters (lowercase, uppercase, digit, and special characters).Get random two characters from a list of digits.Get random two characters from a list of uppercase characters.Get random two characters from a list of lowercase characters.Password has a length of 20 characters.īelow are the steps to generate a secure password:.Password must contain at least two special characters like ! # & ( ) etc.Password must contain at least two uppercase Latin characters.Password must contain at least two lowercase Latin characters.

