A Swift wrapper for Apple's CommonCrypto library providing digest, HMAC, encryption, and key derivation APIs.
IDZSwiftCommonCrypto is a Swift wrapper for Apple's CommonCrypto library that provides a type-safe interface for cryptographic operations like hashing, encryption, and key derivation. It simplifies working with low-level C APIs by offering Swift classes for digest calculation, HMAC generation, symmetric encryption, and password-based key derivation. The library solves the problem of integrating Apple's cryptographic functions into Swift projects without dealing with complex C interop.
iOS and macOS developers who need to implement cryptographic features like data encryption, hashing, or secure key derivation in their Swift applications. It's particularly useful for developers building security-sensitive apps or those requiring compliance with cryptographic standards.
Developers choose IDZSwiftCommonCrypto because it provides a native Swift interface to Apple's battle-tested CommonCrypto library, eliminating the need for manual bridging and error-prone C API usage. Its comprehensive feature set covers most common cryptographic needs while maintaining compatibility with Apple's security ecosystem and Swift language conventions.
A wrapper for Apple's Common Crypto library written 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.
Provides Swift classes like Digest and Cryptor that abstract away low-level C APIs, making cryptographic code more readable and type-safe, as shown in the digest calculation examples with Swift strings and arrays.
Covers a wide range of cryptographic operations including hashing, HMAC, symmetric encryption, and PBKDF, supporting algorithms like AES, SHA-256, and TripleDES, all listed in the README.
Includes StreamCryptor for efficient encryption and decryption of large files or data streams, demonstrated with a full example for image file handling in the documentation.
Maintains releases aligned with Xcode and Swift versions (e.g., 0.13.x for Swift 5.1), ensuring compatibility across different development environments, as detailed in the 'Which Release to Use' section.
Tightly coupled with Apple's CommonCrypto library, limiting its use to iOS, macOS, and other Apple platforms only, making it unsuitable for cross-platform or server-side Swift projects.
The README explicitly warns that CocoaPods users must manually clean the cache after Xcode upgrades, adding unnecessary maintenance overhead compared to more modern dependency managers.
Does not support cryptographic algorithms or features beyond what Apple's CommonCrypto provides, such as newer standards like ChaCha20 or hardware-accelerated optimizations on non-Apple platforms.