The current project aims to show data input limits for AES-GCM encryption on Android < 10 (API 29).
For testing so you need:
Success scenario:
- Launch the app
- Click "Encode" button
- Click "Decode" button
- It will work properly
Limitation scenario:
- Open MainActivity
- Comment line 43 and uncomment line 42
- Launch the app
- Click "Encode" button
- Click "Decode" button
- Check the logs. You will see javax.crypto.AEADBadTagException
Emulator settings: For testing I used Pixel 6 API 28 device with default params
The record with results: demo video