https://github.com/brucewind/cryptoppinndk
A repo for hiding encrypt algorithm working with CryptoPP.
https://github.com/brucewind/cryptoppinndk
android crypto cryptopp jni jni-android ndk security
Last synced: about 1 year ago
JSON representation
A repo for hiding encrypt algorithm working with CryptoPP.
- Host: GitHub
- URL: https://github.com/brucewind/cryptoppinndk
- Owner: BruceWind
- Created: 2019-08-28T08:55:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T12:32:59.000Z (almost 3 years ago)
- Last Synced: 2025-04-15T05:06:04.685Z (about 1 year ago)
- Topics: android, crypto, cryptopp, jni, jni-android, ndk, security
- Language: C++
- Homepage:
- Size: 215 KB
- Stars: 9
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## CryptoPPWithNDK
[中文](https://github.com/BruceWind/CryptoPPInNDK/blob/master/README_zh.md)
## Background
Although encrypting algorithms exist in Java, you cannot conceal them by Proguard due to `java imports`.
## Approach
This repository provides a method for hiding your algorithms: C++ encoding. Therefore, you should not worry about the exposure of your algorithms. It uses Crypto++ 5.6.2 to fulfil the hidden algorithm requirements.
## Build & Test
```
git clone git@github.com:BruceWind/CryptoPPInNDK.git
cd CryptoPPInNDK && git lfs pull
sh ./build_and_push.sh
adb shell
>$: cd /data/local/
>$: ./main
// looking for logs.
```
Before running this shell, you must connect an android emulator in advance.
## In addition
The repo was written so early that it could go wrong in case of building with a new version of NDK.
You may need to build with NDK 13/14/16.
Be careful with **git clone**, I've used `git lfs` to store *.a files.
-------
## Thanks
[Crypto++ for android - Official Page](https://www.cryptopp.com/wiki/Android_(Command_Line)#setenv-android.sh)
[weidai11/cryptopp](https://github.com/weidai11/cryptopp)