Coder Social home page Coder Social logo

sqlcipher-for-android-artifact's Introduction

SQLCipher for Android: the Artifact

NOTE: The official AAR is now available from JCenter via compile 'net.zetetic:android-database-sqlcipher:3.3.1-1@aar'. Please use it. This artifact is officially deprecated, replaced by the official one.

SQLCipher is an encrypted edition of SQLite. SQLCipher for Android is a port of that SQLite to Android, complete with a JAR that offers an API mirroring that of Android's native SQLite API.

At the present time, though, SQLCipher for Android is not available as an official artifact from Zetetic. The official distribution is in the form of a ZIP archive that you have to (carefully) unpack into the right spots in your project and, in the case of Android Studio, add (carefully) to your build.gradle file.

This GitHub repo represents a packaging of the SQLCipher for Android distribution in a standard Android library module. In addition, that library is distributed as an AAR for easier integration into an Android Studio project.

However, it should be noted that this is totally unofficial. It is hoped that Zetitec will distribute an AAR via an artifact repository themselves someday, at which point this project will become officially deprecated.

Installation

To integrate the AAR, add the following closures to your module's build.gradle file:

repositories {
    maven {
        url "https://repo.commonsware.com.s3.amazonaws.com"
    }
}

dependencies {
    compile 'com.commonsware.cwac:sqlcipher-for-android:3.3.1'
}

From there, you use SQLCipher for Android the same way that you would if you were using the official ZIP file distribution.

Note that the version number of the artifact will mirror the version number of the official SQLCipher for Android distribution.

Demo

There is a demo/ module, alongside the library module. Mostly, the demo module is there to confirm that the library module itself is working fine. You're welcome to poke at the code for the demo module to see how to use SQLCipher for Android in a very crude form. In particular, note that while the demo module uses a hardcoded passphrase, nobody ships a production-grade app using a hardcoded passphrase.

License

Please read Zetitec's README for licensing information for SQLCipher for Android itself.

The demo module and ancillary project files unique to this repo are licensed under the Apache Software License 2.0.

Questions

Quoting Zetetic, "the primary venue for free support and announcements is the SQLCipher discuss site." You can read more about SQLCipher for Android's support options on the SQLCipher support page.

If you are encountering problems specifically with this artifact (not SQLCipher for Android itself), you can file an issue.

Release Notes

  • 3.3.1: initial release of artifact

sqlcipher-for-android-artifact's People

Contributors

commonsguy avatar

Watchers

James Cloos avatar TonyTang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.