How aiysss/iapp-decrypt works
This is a Python HTTP service for decrypting iApp v3 APK source, extracting APK/library parameters, repairing dynamic encryption, and handling large uploads. The main workflow is a client sending an APK or lib.so and decryption parameters to the HTTP API, which dispatches work to extraction, decryption, or repair services and returns source or a downloadable archive. The README documents additional cache, upload, and web-documentation capabilities. Several handler and service excerpts are incomplete, so uncertain dispatch links are dashed rather than asserted as verified calls.
Main entry points: handler.py HTTP handler · decrypt.py Source decryption · common.py Decrypt orchestration · factory.py Algorithm selection
Components 19
HTTP service
- Server entry
main.py - HTTP handler
server/handler.py - Request logging
services/log.py
Product workflows
- APK extraction
services/apk_extract.py - Source decryption
services/decrypt.py - Dynamic repair
services/repair.py - Chunked upload
services/upload.py - Result cache
services/cache.py
Decryption engine
- Decrypt orchestration
algorithms/common.py - Algorithm selection
algorithms/factory.py - Current algorithm
algorithms/current.py - Legacy algorithm
algorithms/legacy4.py - Transitional algorithm
algorithms/transitional.py - ELF analysis
crypto/elf.py - AES utilities
crypto/aes.py - SLKY derivation
crypto/slky.py
Web interface
- Web interface
temp/index.html - API documentation
temp/docs.html
Other components
- API client
Connections 20
- API client → Server entry: sends requests
README.md - Server entry → HTTP handler: starts handler
main.py - HTTP handler → APK extraction: dispatches extraction
server/handler.py - HTTP handler → Source decryption: dispatches decryption
server/handler.py - HTTP handler → Dynamic repair: dispatches repair
server/handler.py - HTTP handler → Chunked upload: dispatches uploads
server/handler.py - HTTP handler → Result cache: checks cache
server/handler.py - HTTP handler → Request logging: records requests
server/handler.py - Source decryption → Decrypt orchestration: uses orchestration
services/decrypt.py - Source decryption → Algorithm selection: selects algorithm
services/decrypt.py - Algorithm selection → Current algorithm: selects family
algorithms/factory.py - Algorithm selection → Transitional algorithm: selects family
algorithms/factory.py - Source decryption → Legacy algorithm: supports legacy
services/decrypt.py - Decrypt orchestration → SLKY derivation: derives markers
algorithms/common.py - Decrypt orchestration → AES utilities: decrypts members
algorithms/common.py - Current algorithm → SLKY derivation: derives keys
algorithms/current.py - Transitional algorithm → AES utilities: decrypts container
algorithms/transitional.py - Transitional algorithm → SLKY derivation: derives keys
algorithms/transitional.py - HTTP handler → Web interface: serves interface
- HTTP handler → API documentation: serves documentation