Udemy

Secure API Keys with a Public-Key Cryptography on Android

Enroll Now
  • 238 Students
  • Updated 1/2025
4.6
(26 Ratings)
CTgoodjobs selects quality courses to enhance professionals' competitiveness. By purchasing courses through links on our site, we may receive an affiliate commission.

Course Information

Registration period
Year-round Recruitment
Course Level
Study Mode
Duration
2 Hour(s) 28 Minute(s)
Language
English
Taught by
Stefan Jovanovic
Rating
4.6
(26 Ratings)
2 views

Course Overview

Secure API Keys with a Public-Key Cryptography on Android

Store API Keys on a Backend Server and exchange them Securely with Andorid app, with the help of Android Keystore System

In this short-length course I will teach you how to securely store API keys in your Android App, without exposing them to the public. With the help of a Public Key Cryptography, Android Keystore System, Encrypted Shared Preferences and our own Backend server, you will achieve exactly that.


Public key cryptography, also known as asymmetric cryptography, is a cryptographic approach that uses key pair: public key and private key. Each key pair consists of a public key and a private key that are mathematically related but cannot be derived one from another.


This approach will help us to securely exchange the data between a client and a server. API Keys will be initially stored securely on our backend Server. The server and the client will exchange the public key, to encrypt the data, before sending it back to the client.


That way we can make sure that no one can read the actual data which is exchanged. Only our Android application will hold the private key to decrypt the data, and securely  store the API keys on a device.


Android Keystore system is a part of the Android operating system that provides a secure storage facility for cryptographic keys, certificates, and related information. It is designed to protect sensitive data, such as private keys used for encryption and authentication, from unauthorized access.


I will provide you with some more detailed information about the Keystore System itself and how does it work. We will utilize that system to securely store the Public Key Pair that is going to be generated for us.


So what are you waiting for, let's get started!

Course Content

  • 7 section(s)
  • 22 lecture(s)
  • Section 1 Introduction
  • Section 2 The Basics of Cryptography
  • Section 3 Client Application - Android
  • Section 4 Server Application - Kobweb/Ktor
  • Section 5 Server Deployment
  • Section 6 Security Best Practices
  • Section 7 Course Updates

What You’ll Learn

  • Public-Key Cryptography
  • Generate Private/Public Key Pair
  • Encrypt/Decrypt the Data
  • Establish a Secure Communication
  • Secure Exchange of API Keys between Android app and a Server
  • Android Keystore System
  • Learn more about Security Concepts in Android
  • Encrypted Shared Preferences
  • Learn how to Secure your Android app

Skills covered in this course


Reviews

  • D
    Dan Fil
    4.5

    Very interesting, but quite difficult to understand all this encoding/decoding logic.

  • A
    Ashwani Kumar Singh
    5.0

    Really it is worth.

  • S
    Sri Krishna NUNNA
    5.0

    It was a great realisation of how Public and Private Key works in reality. Also the final advise was much sought out for everyone working to secure their Servers.

  • J
    Jean Alvarez
    5.0

    Great course. 100% recommended.

Start FollowingSee all

We use cookies to enhance your experience on our website. Please read and confirm your agreement to our Privacy Policy and Terms and Conditions before continue to browse our website.

Read and Agreed