A simple way to encrypt your secure datas into a native .so library.

Cipher.so
Providing a simple way to keep your secure info safe for android developing.

About
How it works?
All the key-values will be auto package into a native library during the compile time. Then your can obtain them from the Java interface generated by Cipher.so.
Features
- Encyte secure infos in a native library by easy configs
- Reflection free
Usages
Installation
Step 1. in the root build.gradle:
Add jcenter()
resposity and classpath 'net.idik.lib.security:cipher.so:0.0.2'
dependency into the buildscript as fllow:
groovybuildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath 'net.idik.lib.security:cipher.so:0.0.2' }}
Step 2. in the app module build.gradle:
Add apply plugin:'cipher.so'
before(VERY IMPORTANT) apply plugin: 'com.android.application'
groovyapply plugin: 'cipher.so'apply plugin: 'com.android.application'
That's all, Cipher.so is ready to GO.
Configuration
In your app module build.gradle, add the follow-like configs to save key-values.
groovycipher.so { keys { hello { value = 'Hello From Cipher.so😊' } httpsKey { value = 'htkdjfkj@https2017now' } 数据库密码 { value = '今天天气不错😂😂' } ... }}
Then Rebuild to generate the Java Interface.
3. Call In Java/Kotlin
JavaString hello = CipherClient.hello();String httpsKey = CipherClient.httpsKey();String dbKey = CipherClient.数据库密码();
Sample: HelloCipherSo
Contribute?
I am very glad for your contributes. Let's make this job more awnsome.
Here is the contribute workflow from github: Contribute Guide
Todos
- Encypte data in .so-lib
- Prevent dynamic attacks
- Support different Application varients
References
Great Thanks to
License
Copyright 2017 认真的帅斌Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.
To restore the repository download the bundle
wget https://archive.org/download/github.com-MEiDIK-Cipher.so_-_2017-12-18_14-50-38/MEiDIK-Cipher.so_-_2017-12-18_14-50-38.bundle
and run:
git clone MEiDIK-Cipher.so_-_2017-12-18_14-50-38.bundle
Source:
https://github.com/MEiDIK/Cipher.soUploader:
MEiDIKUpload date: 2017-12-18