Latest 1.0.0
License MIT
Platforms ios 9.0

Square1 Security


A handy collection of helpers, types and hacks used on our Swift projects.


  • iOS 9.0+
  • XCode 9+
  • Swift 4+



If you’re already using Cocoapods in your project, just skip to step 3

  1. Install Cocoapods
  2. Create a Podfile for your project
  3. Make sure you use
  4. Add this pod to your Podfile
    pod 'Square1Security'
  5. Run pod install
  6. Use this import on every file you want to use the pod
    import Square1Security

How to use


Keychain is a helper class to quickly access to stored values in iOS Keychain.

You can instance a Keychain object like this:

let keychain = Keychain()

// You can also instance it with a specific access group.
let anotherKeychain = Keychain(accessGroup: "MyGroup")

Using Keychain to is straightforward :

// Save into keychain"Hello World!!", forKey: "MyKey") // returns true if ok, otherwise false

// Read from keychain
keychain.get("MyKey") // returns String?

// Delete from keychain
keychain.delete("MyKey") // returns true if ok, otherwise false


Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests to us.



This project is licensed under the MIT License – see the LICENSE file for details


To all the great Swift community out there.

Latest podspec

    "name": "Square1Security",
    "version": "1.0.0",
    "summary": "Helpers for dealing with Security on iOS",
    "description": "This is a growing collection of Helpers to deal with Security on iOS.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": ""
    "authors": "Square1",
    "platforms": {
        "ios": "9.0"
    "source": {
        "git": "",
        "tag": "1.0.0"
    "source_files": "Source/**/*.swift"

Pin It on Pinterest

Share This