https://github.com/nikeee/sparkasse-backup-decrypt
CLI tool to extract and decrypt the SQLite database of a backup ZIP of the Sparkasse Android application.
https://github.com/nikeee/sparkasse-backup-decrypt
android backup decryption hacktoberfest sparkasse sqlite
Last synced: about 1 year ago
JSON representation
CLI tool to extract and decrypt the SQLite database of a backup ZIP of the Sparkasse Android application.
- Host: GitHub
- URL: https://github.com/nikeee/sparkasse-backup-decrypt
- Owner: nikeee
- License: agpl-3.0
- Created: 2020-05-24T00:15:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-09T01:42:50.000Z (about 1 year ago)
- Last Synced: 2025-04-09T02:33:40.387Z (about 1 year ago)
- Topics: android, backup, decryption, hacktoberfest, sparkasse, sqlite
- Language: Rust
- Homepage:
- Size: 217 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# sparkasse-backup-decrypt [](https://github.com/nikeee/sparkasse-backup-decrypt/actions/workflows/CI.yml)
CLI tool to extract and decrypt the SQLite database of a backup ZIP of the [Sparkasse Android application](https://play.google.com/store/apps/details?id=com.starfinanz.smob.android.sfinanzstatus).
This project was rewritten. In case it does not work for you, you can find the previous version in the branch [`python-version`](https://github.com/nikeee/sparkasse-backup-decrypt/tree/python-version).
## Install
TODO
## Usage
### Prerequisites
You need to have a backup zip file. [Look at the comments on how to get one](https://blog.sparkasse-allgaeu.de/artikel/die-sparkassen-app-auf-ein-neues-handy-uebertragen).
Depending on your Android version, backups are located at:
- `/storage/emulated/0/ebanking`
- `/storage/emulated/0/Android/data/com.starfinanz.smob.android.sfinanzstatus/files`
If you are running Android 11+, chances are that you need to access the files using your PC by connecting your phone to the PC via USB.
You can also use ADB instead of crappy MTP:
```shell
adb pull "/storage/emulated/0/Android/data/com.starfinanz.smob.android.sfinanzstatus/files/"
```
### Decryption
```shell
./sparkasse-backup-decrypt --in-file --out-file
# (you will be asked for your app password)
# Example call:
./sparkasse-backup-decrypt --in-file sfinanzstatus55100Auto20200101-155119.zip --out-file plaintext.db
# You can check if the out file is in plaintext by using sqlite3:
# sqlite3 plaintext.db .schema
```
## Compile from Source
```shell
git clone https://github.com/nikeee/sparkasse-backup-decrypt.git
cd sparkasse-backup-decrypt
cargo build --release
# binary located at:
# target/release/sparkasse-backup-decrypt
```