SwiftSSL alternatives and similar libraries
Based on the "Cryptography" category.
Alternatively, view SwiftSSL alternatives based on common mentions on social networks and blogs.
-
CryptoSwift
CryptoSwift is a growing collection of standard and secure cryptographic algorithms implemented in Swift -
RNCryptor
CCCryptor (AES encryption) wrappers for iOS and Mac in Swift. -- For ObjC, see RNCryptor/RNCryptor-objc -
Themis
Easy to use cryptographic framework for data protection: secure messaging with forward secrecy and secure data storage. Has unified APIs across 14 platforms. -
BlueRSA
RSA public/private key encryption, private key signing and public key verification in Swift using the Swift Package Manager. Works on iOS, macOS, and Linux (work in progress).
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of SwiftSSL or a related project?
README
SwiftSSL
SwiftSSL is an Elegant crypto toolkit in Swift, based on CommonCrypto.
How To Get Started
Add SwiftSSL as submodule
git submodule add https://github.com/SwiftP2P/SwiftSSL.git SwiftSSL
Add SwiftSSL.xcodeproj as subproject
Configure your project
- Add relative path for file module.map in your project Build Settings / Swift Compiler - Search Paths / Import Paths
Done!
Sample Code
SwiftSSL try to do things in swift way, so it doesn't just transfor code from openssl or other lib.
If you wanna digest String or NSData, you can do it just like this:
import SwiftSSL
let plainText: String = "This is plain text."
var digestString = plainText.digest(SwiftSSL.DigestAlgorithm.MD5)
Just that simple!
Wanna sign a message?
import SwiftSSL
let message: String = "This is your message."
let passphrase: String = "Your passphrase"
var signature = message.sign(SwiftSSL.HMACAlgorithm.SHA512, key: passphrase)
Have fun!
About
SwiftSSL is still on the way. It has provided:
- Crypto
- Digest
- MD2
- MD4
- MD5
- SHA1
- SHA224
- SHA256
- SHA384
- SHA512
- HMAC
- MD5
- SHA1
- SHA224
- SHA256
- SHA384
- SHA512
- Digest
References
License
Cypraea is released under the MIT license. See LICENSE for details.
*Note that all licence references and agreements mentioned in the SwiftSSL README section above
are relevant to that project's source code only.