From the course: Writing Secure Code for Android by Infosec

Unlock this course with a free trial

Join today to access over 25,400 courses taught by industry experts.

Activity: Implementing a password checker, part 1

Activity: Implementing a password checker, part 1

From the course: Writing Secure Code for Android by Infosec

Activity: Implementing a password checker, part 1

- [Instructor] Authentication. Activity, Implementing a Password Checker. In Android Studio, open an existing project, and go to the activity files, go to Course 6, Implementing a Password Checker. Select the PasswordStrengthChecker app and open it up. Click OK. You might remember way back when in Course 2 that we used regular expressions to check a password strength, but this time we're going to get a little bit fancier and I'm going to take advantage of Logcat to help us understand some of the logic. If you drill down, you'll notice that there is a PasswordStrength class and the MainActivity. The PasswordStrength, as you can imagine, does all of the password strength checking. The MainActivity, of course, is the entry point to our app. Before we get into the code, take a look at /res/layout/activity_main.xml. And if you don't have it set to split view, come up to the upper right and change the view to split so we can look at both the XML and the GUI 'cause I want to point out a…

Contents