Skip to content

forbze/SQLiteCipher.swift

 
 

Repository files navigation

SQLiteCipher.swift

A SQLCipher-ready version of SQLite.swift.

Usage

import SQLiteCipher

let db = try Connection("path/to/db.sqlite3")

try db.key("secret")

Installation

Note: SQLiteCipher.swift requires Swift 2 (and Xcode 7) or greater.

Carthage

Carthage is a simple, decentralized dependency manager for Cocoa. To install SQLiteCipher.swift with Carthage:

  1. Make sure Carthage is installed.

  2. Update your Cartfile to include the following:

    github "stephencelis/SQLiteCipher.swift" "master"
    
  3. Run carthage update and add the appropriate framework.

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. To install SQLiteCipher.swift with CocoaPods:

  1. Make sure CocoaPods is installed. (SQLiteCipher.swift requires version 0.37 or greater.)

  2. Update your Podfile to include the following:

    use_frameworks!
    
    pod 'SQLiteCipher.swift',
      git: 'https://github.com/stephencelis/SQLiteCipher.swift.git'
  3. Run pod install.

Manual

To install SQLiteCipher.swift as an Xcode sub-project:

  1. Drag the SQLiteCipher.xcodeproj file into your own project. (Submodule or clone the project first.)

  2. In your target’s General tab, click the + button under Linked Frameworks and Libraries.

  3. Select the appropriate SQLiteCipher.framework for your platform.

  4. Click Add.

License

SQLiteCipher.swift is available under the MIT license. See the LICENSE file for more information.

About

SQLite.swift + SQLCipher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 77.5%
  • Ruby 17.8%
  • Objective-C 4.7%