Swift Security

Open-source Swift projects categorized as Security

Top 23 Swift Security Projects

  • GitHub repo CryptoSwift

    CryptoSwift is a growing collection of standard and secure cryptographic algorithms implemented in Swift

    Project mention: What’s everyone working on this month? (March 2021) | reddit.com/r/swift | 2021-03-02

    Made a pull request in the CryptoSwift package https://github.com/krzyzanowskim/CryptoSwift/pull/855

  • GitHub repo KeychainAccess

    Simple Swift wrapper for Keychain that works on iOS, watchOS, tvOS and macOS.

    Project mention: Devs could resort to workarounds to avoid iOS 14 anti-tracking feature | reddit.com/r/apple | 2021-01-07
  • GitHub repo Valet

    Valet lets you securely store data in the iOS, tvOS, or macOS Keychain without knowing a thing about how the Keychain works. It’s easy. We promise.

  • GitHub repo RNCryptor

    CCCryptor (AES encryption) wrappers for iOS and Mac in Swift. -- For ObjC, see RNCryptor/RNCryptor-objc

  • GitHub repo wire-ios

    📱 Wire for iOS (iPhone and iPad)

    Project mention: Where do you get started learning about encryption if one were trying to make an encrypted messaging app? | reddit.com/r/iOSProgramming | 2021-03-04

    Wire is also an open source encrypted messenger. They use the proteus protocol (an early branch of the Signal protocol), the implementation is called Cryptobox and is written in Rust, here is a Swift wrapper which their iOS app uses.

  • GitHub repo Locksmith

    A powerful, protocol-oriented library for working with the keychain in Swift.

  • GitHub repo secretive

    Store SSH keys in the Secure Enclave

    Project mention: How often should I rotate my SSH keys? | news.ycombinator.com | 2021-02-25

    Secretive also does this, and works on any Mac with the T2. I use it for all my ssh keys these days. It’s super slick!


  • GitHub repo blokada

    The official repo for Blokada for Android and iOS.

    Project mention: Is Blokada safe? | reddit.com/r/androidapps | 2021-03-06

    Both v4 and v5 (for those who don't know, 5 is considered unstable) can be downloaded from the official site: https://blokada.org/

  • GitHub repo keychain-swift

    Helper functions for saving text in Keychain securely for iOS, OS X, tvOS and watchOS.

  • GitHub repo SwiftShield

    🔒 Swift Obfuscator that protects iOS apps against reverse engineering attacks.

  • GitHub repo SwiftKeychainWrapper

    A simple wrapper for the iOS Keychain to allow you to use it in a similar fashion to User Defaults. Written in Swift.

  • GitHub repo SwiftyRSA

    RSA public/private key encryption in Swift

  • GitHub repo BiometricAuthentication

    Use Apple FaceID or TouchID authentication in your app using BiometricAuthentication.

  • GitHub repo SwiftPasscodeLock

    An iOS passcode lock with TouchID authentication written in Swift.

  • GitHub repo SwCrypt

    RSA public/private key generation, RSA, AES encryption/decryption, RSA sign/verify in Swift with CommonCrypto in iOS and OS X

  • GitHub repo Smile-Lock

    A library for make a beautiful Passcode Lock View

  • GitHub repo IDZSwiftCommonCrypto

    A wrapper for Apple's Common Crypto library written in Swift.

  • GitHub repo SecurePropertyStorage

    Helps you define secure storages for your properties using Swift property wrappers.

  • GitHub repo Heimdall

    Heimdall is a wrapper around the Security framework for simple encryption/decryption operations. (by henrinormak)

  • GitHub repo CommonCrypto.swift

    :trident: CommonCrypto in Swift, and more

  • GitHub repo SipHash

    Simple and secure hashing in Swift with the SipHash algorithm

  • GitHub repo SecureEnclaveCrypto

    Demonstration library for using the Secure Enclave on iOS

  • GitHub repo SwiftSSL

    An Elegant crypto toolkit in Swift.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-03-06.


What are some of the best open-source Security projects in Swift? This list will help you:

Project Stars
1 CryptoSwift 8,301
2 KeychainAccess 6,169
3 Valet 3,597
4 RNCryptor 3,235
5 wire-ios 2,963
6 Locksmith 2,896
7 secretive 2,485
8 blokada 2,010
9 keychain-swift 1,925
10 SwiftShield 1,621
11 SwiftKeychainWrapper 1,298
12 SwiftyRSA 888
13 BiometricAuthentication 742
14 SwiftPasscodeLock 666
15 SwCrypt 629
16 Smile-Lock 602
17 IDZSwiftCommonCrypto 449
18 SecurePropertyStorage 377
19 Heimdall 370
20 CommonCrypto.swift 280
21 SipHash 252
22 SecureEnclaveCrypto 250
23 SwiftSSL 182