Last active
August 29, 2015 14:01
-
-
Save masayuki5160/b57bac0a417c9e390655 to your computer and use it in GitHub Desktop.
SQLiteKitをつかった場合のDBファイル暗号化方法. 内部ではsqlite3_keyをよんでるだけっぽい.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db = new SQLiteDB(); | |
db.Open(FILE); | |
db.Key("pass");// 事前にdb.Rekey("pass");で暗号化しておいたdbファイルを開く |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
【参考】
SQLCipher:SQLite暗号化対応ライブラリ
http://labs.torques.jp/2012/11/19/3018/