Swiftpack.co -  IBM/ios-keychain as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
IBM/ios-keychain
iOS Keychain Helper
.package(url: "https://github.com/IBM/ios-keychain.git", from: "1.0.4")

Keychain

Development Setup

  1. Run project:
  2. cd <project-folder>
  3. open Package.swift
  4. Open the generated xcodeproject.

Usage

Keychain uses the official SwiftPM manifest format for specifying dependencies. So in order to add a dependency, you will need to do two things:

  1. Add a .package entry to the dependencies array of your Package
  2. Add all scheme/library names you want to build to the dependencies section of the appropriate target(s)
dependencies: [
    .package(url: "https://github.com/IBM/ios-keychain", from: "1.0.0"),
]

Use Keychain in order to store eider passowrds or certificates

Certificates

public static func storeCertificate(_ data: Data, for key: String, dependencies: Dependencies) throws 

public static func deleteCertificate(for key: String, dependencies: Dependencies) throws 

public static func fetchCertificate(for key: String, dependencies: Dependencies) throws -> Data? 

Passwords

public static func storePassword(_ data: Data, for key: String, dependencies: Dependencies) throws 

public static func deletePassword(for key: String, dependencies: Dependencies) throws 

public static func fetchPassword(for key: String, dependencies: Dependencies) throws -> Data?

GitHub

link
Stars: 3
Last commit: 3 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API