A Swift library for RSA public/private key encryption, signing, and verification on iOS/macOS.
SwiftyRSA is a Swift library that enables RSA public/private key encryption, decryption, signing, and verification for iOS and macOS applications. It solves the problem of implementing secure cryptographic operations by providing a simple, Swifty API that abstracts the underlying Security framework complexities.
iOS and macOS developers who need to integrate RSA encryption, digital signatures, or secure data transmission into their Swift applications.
Developers choose SwiftyRSA for its clean, intuitive Swift API, comprehensive feature set (including key generation and X.509 support), and reliable handling of keychain operations, making cryptography accessible without deep security expertise.
RSA public/private key encryption in Swift
Abstracts the complex iOS/macOS Security framework with intuitive classes like ClearMessage and EncryptedMessage, making encryption and signing operations straightforward.
Supports loading keys from PEM, DER, Base64 strings, Data, or SecKey references, providing flexibility for various key management scenarios.
Allows generating RSA key pairs programmatically within the app, simplifying setup for new cryptographic keys.
Includes utilities to add or strip X.509 headers from public keys, ensuring compatibility with certificate-based systems as detailed in the advanced usage section.
Limited to RSA cryptography, lacking support for more modern algorithms like Elliptic Curve Cryptography (ECC), which might be preferred for efficiency and security.
Exclusive to iOS and macOS due to reliance on Apple's Security framework, making it unsuitable for cross-platform or server-side Swift projects on Linux.
Automatically handles keychain storage and deletion, which can introduce complexity and potential performance issues in apps with frequent cryptographic operations, as noted in the 'Under the hood' section.
CryptoSwift is a growing collection of standard and secure cryptographic algorithms implemented in Swift
CCCryptor (AES encryption) wrappers for iOS and Mac in Swift. -- For ObjC, see RNCryptor/RNCryptor-objc
Easy to use cryptographic framework for data protection: secure messaging with forward secrecy and secure data storage. Has unified APIs across 14 platforms.
A simple and opinionated AES encrypt / decrypt Objective-C class that just works.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.