Providing a simple way to keep your secure info safe for android app development.
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.
- Encrypt secure info in a native library via easy configs
- Reflection free
Add jcenter()
resposity and classpath 'net.idik.lib.security:cipher.so:0.0.3'
dependency into the buildscript as fllow:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'net.idik.lib.security:cipher.so:0.0.3'
}
}
Add apply plugin:'cipher.so'
before(VERY IMPORTANT) apply plugin: 'com.android.application'
apply plugin: 'cipher.so'
apply plugin: 'com.android.application'
That's all, Cipher.so is ready to GO.
In your app module build.gradle, add the follow-like configs to save key-values.
cipher.so {
keys {
hello {
value = 'Hello From Cipher.so😊'
}
httpsKey {
value = 'htkdjfkj@https2017now'
}
数据库密码 {
value = '今天天气不错😂😂'
}
...
}
}
Then Rebuild to generate the Java Interface.
String hello = CipherClient.hello();
String httpsKey = CipherClient.httpsKey();
String dbKey = CipherClient.数据库密码();
Sample: HelloCipherSo
I am very glad for your contributes. Let's make this job more awnsome.
Here is the contribute workflow from github: Contribute Guide
- Encypte data in .so-lib
- Prevent dynamic attacks
- Support different Application varients
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.0
Unless required by applicable law or agreed to in writing, software
distributed 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 and
limitations under the License.