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: Filtering a malicious QR code, part 1

Activity: Filtering a malicious QR code, part 1

From the course: Writing Secure Code for Android by Infosec

Activity: Filtering a malicious QR code, part 1

- [Instructor] Code tampering and injection. Activity. Filtering a malicious QR code. Open up Android Studio. Open an existing project, browse to your student activities. Go to Course 2, Filtering a Malicious QR Code, select Scanner, and click OK. We have a scenario here. A local merchant has hired us to create a mobile app. What they want to do is generate the discount code of the day. Customers will scan the QR code and they'll get a discount code, which they can use at the cash register. If you open up MainActivity, you'll notice that there's not a lot of code here. And the reason why is that we're going to use a library called Zebra Crossing, ZXing, to do all the heavy lifting for us. We're just going to interact with it here, set up a few views and interact and get the code. Now, here's the trick. When we had a meeting with the customer, we asked them, "What will the QR code look like?" And they said, "It will be digits." And we said, "Okay," so there's one more thing we're going…

Contents