A comprehensive collection of cryptographic algorithms implemented in pure Swift for Apple platforms and Linux.
CryptoSwift is an open-source library that provides a comprehensive suite of cryptographic algorithms implemented natively in Swift. It enables developers to perform encryption, decryption, hashing, message authentication, and key derivation within Swift applications across Apple platforms and Linux. The library solves the need for a pure-Swift cryptography solution that avoids bridging to lower-level C libraries.
Swift developers building applications for iOS, macOS, watchOS, tvOS, or Linux that require cryptographic functionality such as data encryption, secure hashing, or digital signatures.
Developers choose CryptoSwift because it offers a broad range of cryptographic algorithms in a single, easy-to-use Swift package with no external dependencies. Its pure Swift implementation ensures seamless integration with Swift projects, cross-platform compatibility, and support for incremental processing of large data streams.
CryptoSwift is a growing collection of standard and secure cryptographic algorithms implemented in Swift
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Implements a wide range of cryptographic functions including AES, SHA families, RSA, and authenticated modes like GCM, as detailed in the features list.
Works natively across all Apple platforms and Linux with a single codebase, eliminating external dependencies.
Supports streaming via update() and finish() methods for hashing and encryption, enabling efficient handling of large files or data streams.
Provides convenient extensions for String and Data types, simplifying common operations like .md5() or .encrypt() with minimal code.
Debug builds can be up to 10,000 times slower without whole-module optimization, requiring manual configuration that is easy to overlook.
CocoaPods support is deprecated and no longer recommended, forcing teams to migrate to SPM or Carthage, which may disrupt existing workflows.
As a community-driven pure Swift library, it lacks the rigorous, ongoing security reviews of system-level cryptographic APIs like Apple's Security framework.