From the course: Writing Secure Code for Android by Infosec

Unlock this course with a free trial

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

Activity: Encrypting data, part 1

Activity: Encrypting data, part 1

- [Instructor] Android encryption overview. Activity. Encrypting data. In Android Studio, open an existing project and go to your activities. Go to Course 4 and choose the KeyEncryption app. And open it. This app actually has a lot of moving parts, so we're going to do things a little bit out of the normal sequence. I want to focus on the main activity first and run the app and then later we'll talk about the other UI components and the database. I mean, we cover database in a whole different area here, so I don't want to get too deep into that. But let's focus on just the encryption part first. Open MainActivity and expand Import. And you'll notice that we are using a variety of things. We're going to use database, we're going to use the javax.crypto libraries. We're going to use Base64 and a Toast, and I'll explain why we have all of these in just a bit. Collapse import. Let's start with just starting our main activity. This project, we're going to use something called the Data…

Contents