Skip to content

Instantly share code, notes, and snippets.

@masayuki5160
Last active August 29, 2015 14:01
Show Gist options
  • Save masayuki5160/b57bac0a417c9e390655 to your computer and use it in GitHub Desktop.
Save masayuki5160/b57bac0a417c9e390655 to your computer and use it in GitHub Desktop.
SQLiteKitをつかった場合のDBファイル暗号化方法. 内部ではsqlite3_keyをよんでるだけっぽい.
db = new SQLiteDB();
db.Open(FILE);
db.Key("pass");// 事前にdb.Rekey("pass");で暗号化しておいたdbファイルを開く
@masayuki5160
Copy link
Author

【参考】
SQLCipher:SQLite暗号化対応ライブラリ
http://labs.torques.jp/2012/11/19/3018/

@masayuki5160
Copy link
Author

5/28 iPhone動作チェックOK

@masayuki5160
Copy link
Author

【参考】
SQLiteを手軽に・セキュアに
http://www.slideshare.net/tomotsunemurata/sql-21454357

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment