Add first version of

parent 981a5ac2
Pipeline #1524 failed with stages
# Briar Reproducer
This is a tool you can use to verify
that [Briar]( was built exactly from the public source code
and no modifications (such as backdoors) were made.
It works by building the app deterministically in a controlled standard environment
and comparing the result to the [official APK file](
More information about these so called reproducible builds is available at
The source code for this tool is available at
## How it works
We are using the Docker container technology to create a controlled and stable environment.
Our image is based on the official Debian stable image
and installs a minimum of software required to build Briar
and to compare the result with the official APK files.
You can find all software that gets installed in the `install*.sh` files.
Then there are two Python scripts.
`` is downloading the official APK
and the source code from the official git repository.
It builds a new APK from the source code
and then hands over to ``.
This script verifies that the official APK
and the newly-built one are identical bit by bit.
It does so by repacking both APKs in a deterministic way
stripping both the Android v1
and [v2 signature](
from the APK so that only the contents can be are compared.
Both repacked APKs are then hashed with SHA512.
If their hashes are the same, the contents are identical
and we know that the official APK was built from the exact same source.
If the hashes differ,
[diffoscope]( is used to show where both versions differ.
## How to use
Verify that you have `docker` installed:
docker --version
If this command does not work,
please [install Docker](
and continue once it is installed.
### Using our pre-built image
If you trust that our pre-built Docker image was build exactly from *its* source,
you can use it for faster verification.
If not, you can skip to the next section to build the image yourself.
Then you are just trusting the official `debian:stable` which is out of our control.
To use our image without building it yourself,
you can just pull it from's docker registry:
docker pull
Tag it with our canonical name:
docker tag briar-reproducer:latest
Now you can skip the next section and move to *Run the verification*.
### Building your own image
Check out the source repository:
git clone
Build our Docker image:
docker build -t briar-reproducer briar-reproducer
### Run the verification
To verify a specific version of Briar, run
docker run briar-reproducer:latest ./ [tag]
Where `[tag]` is the git tag (source code snapshot) that identifies the version
you want to test, for example `release-1.0.1`.
You can find a list of tags in Briar's
[source code repository](
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment