{"id":36589321,"url":"https://github.com/cryptimeleon/android-demo","last_synced_at":"2026-01-12T08:09:48.093Z","repository":{"id":45634340,"uuid":"380161776","full_name":"cryptimeleon/android-demo","owner":"cryptimeleon","description":"An example project with instructions on how to use cryptimeleon on android. ","archived":false,"fork":false,"pushed_at":"2021-12-03T17:08:56.000Z","size":7207,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-10T06:27:01.470Z","etag":null,"topics":["android","android-app","cryptography","mcl","pairing"],"latest_commit_sha":null,"homepage":"https://cryptimeleon.org/getting-started/pairing-tutorial.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptimeleon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-25T07:37:27.000Z","updated_at":"2021-12-03T17:09:00.000Z","dependencies_parsed_at":"2022-09-15T17:40:16.799Z","dependency_job_id":null,"html_url":"https://github.com/cryptimeleon/android-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cryptimeleon/android-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptimeleon%2Fandroid-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptimeleon%2Fandroid-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptimeleon%2Fandroid-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptimeleon%2Fandroid-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptimeleon","download_url":"https://codeload.github.com/cryptimeleon/android-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptimeleon%2Fandroid-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-app","cryptography","mcl","pairing"],"created_at":"2026-01-12T08:09:42.662Z","updated_at":"2026-01-12T08:09:48.088Z","avatar_url":"https://github.com/cryptimeleon.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build](https://github.com/cryptimeleon/android-demo/actions/workflows/workflow.yaml/badge.svg?branch=main)](https://github.com/cryptimeleon/android-demo/actions/workflows/workflow.yaml)\n\n# Cryptimeleon on Android\n\nThis repository is an example of how to use the cryptimeleon libraries on android.\nWe therefore implement the Pointcheval-Sanders signature scheme from the [pairing tutorial](https://cryptimeleon.github.io/getting-started/pairing-tutorial.html).\n\u003c/br\u003e\u003cimg src=\"images/app.gif\" height=\"450\"\u003e\n\n## How to use cryptimeleon on android\n\n 1. Create a new android project in Android Studio. \u003c/br\u003e\u003cimg src=\"images/app-setup.png\" height=\"350\"\u003e\n 2. Add cryptimeleon dependencies to `app/build.gradle`:\n      ```\n      implementation 'org.cryptimeleon:math:3.+'\n      implementation 'org.cryptimeleon:craco:3.+'\n      ```\n    You can find details on the maven pages: [math](https://search.maven.org/artifact/org.cryptimeleon/math/3.0.1/jar), [craco](https://search.maven.org/artifact/org.cryptimeleon/craco/3.0.1/jar)\n\n**Note:** When running using a Virtual Device (Android Emulator), make sure to use a `x86_64` image.\n\n## Faster pairings with mcl\n\nWe use the C++ library [herumi/mcl](https://github.com/herumi/mcl) as a fast implementation of the BarretoNaehrig group.\nThis provides a massive speedup compared to the Java implementation.\n\n### Precompiled library\n\nWe provide a precompiled version of `mcljava` for different architectures at `app/src/main/jniLibs`.\nTo use them, you need to load the library with the `System.loadLibrary(\"mcljava\")` command.\nBy adding the dependency `implementation 'org.cryptimeleon:mclwrap:3.0.0'` to the inner build.gradle, you get access to the `MclBilinearGroup`.\n\n### Compile MCL for android\n\nThis needs to be compiled using NDK and added to the project as a jniLib.\n\n 1. Install [NDK](https://developer.android.com/studio/projects/install-ndk)\n 2. Checkout [MCL](https://github.com/herumi/mcl) with the *correct version* (currently v1.28, which is the first release with native android support)\n 3. Build mcl (might not be necessary) by following the instructions\n 4. Build mcl for android: Go to `mcl/ffi/java/android/jni` and call `ndk-build` (either add ndk-build to your path, or use an absolute path, e.g. `$\u003cpath-to-mcl\u003e/ffi/java/android/jni$ ~/Android/Sdk/ndk/22.1.7171670/ndk-build`). Currently, mcl's Application.mk builds native libraries for the arm64-v8a, armeabi-v7a and x86_64 architectures. If you require additional architectures (e.g. x86 for the Android emulator), add a space and the architecture name at the and of the line starting with APP_ABI in Application.mk before invoking ndk-build\n 5. Copy the directories in `mcl/ffi/java/android/libs` (which contain the `libmcljava.so` file) to `app/src/main/jniLibs`\n 6. Load mcl in the app prior usage with `System.loadLibrary(\"mcljava\")`, e.g. in `MainActivity.onCreate`.\n 7. Add the dependency `implementation 'org.cryptimeleon:mclwrap:3.0.0'` to the app's build.gradle\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptimeleon%2Fandroid-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptimeleon%2Fandroid-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptimeleon%2Fandroid-demo/lists"}