<!-- Canonical page: https://reversedwithai.com/p/rea-aegis-totp-trace -->
Canonical page: https://reversedwithai.com/p/rea-aegis-totp-trace

# Traced how Aegis Authenticator makes its six-digit codes from the Android APK with REA

> Found the TOTP code path in a released APK and rebuilt it.

The REA project shows REA inspecting the open source Aegis Authenticator APK, finding the login-code calculation and checking a reconstruction against 133 test cases.

## Key facts

- Target: Aegis Authenticator (Android APK)
- Category: Apps
- Platform: Android
- Tools: REA, jadx-headless-mcp
- Outcome: Works
- Checks: Source available: yes; Repro steps: yes; Real hardware: not reported; Verified by others: not reported
- Author: [REA project (morluto)](https://github.com/morluto/rea)
- Added: 2026-10-15
- Updated: 2026-10-15
- Sources reviewed: 2026-10-15 (editor)

## What was done

The REA project published a case study on Aegis Authenticator, an open source Android app. Using REA's Android tools, it finds how the app makes six-digit login codes and rebuilds the calculation in a browser demo with an adjustable clock.

### How it was done

The page lists four REA Android tools: package inspection, class search, class inspection and reference tracing. They narrowed 3,077 classes to three Totp matches, with one class as the calculation candidate. Tracing it back to the display code showed which method the screen calls. Reading the method showed 30-second time blocks, an HMAC with the account key, and six-digit output. The page does not name the model or agent. The run used REA 6.1.0 on 9 October 2026.

### Results

A reconstruction was checked against 133 test cases and the RFC 6238 SHA-1 reference cases. The browser demo reproduces the code generator, and you can move the clock to watch the code change. Aegis is GPL-3.0 licensed and its source is public, so this is a worked example.

## Questions about Aegis Authenticator (Android APK)

### What is the Aegis Authenticator (Android APK) project?

The REA project shows REA inspecting the open source Aegis Authenticator APK, finding the login-code calculation and checking a reconstruction against 133 test cases. It is listed under Apps for Android.

### Which tools were used on Aegis Authenticator (Android APK)?

The entry names REA and jadx-headless-mcp. It does not name an AI model.

### Did the AI reverse engineering of Aegis Authenticator (Android APK) work?

Its author reports that it works. Checks recorded: source available yes, repro steps yes.

### Is the source code for Aegis Authenticator (Android APK) available?

Yes. The code, patches or tooling are public: https://github.com/morluto/rea. The sources give enough steps to reproduce it.

## Sources

- [Repository](https://github.com/morluto/rea)
- [Write-up](https://rea.tools/showcase/aegis/)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: REA project (morluto) (2026). Traced how Aegis Authenticator makes its six-digit codes from the Android APK with REA. Reversed with AI. https://reversedwithai.com/p/rea-aegis-totp-trace
