{"id":32151097,"url":"https://github.com/drdijkstra/whiteboxcryptography","last_synced_at":"2025-10-21T10:35:43.610Z","repository":{"id":267571866,"uuid":"901461850","full_name":"DrDijkstra/WhiteboxCryptography","owner":"DrDijkstra","description":"WhiteboxCryptographySDK","archived":false,"fork":false,"pushed_at":"2024-12-16T22:18:45.000Z","size":268,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-10-03T04:50:00.504Z","etag":null,"topics":["aes","crypto","cryptography"],"latest_commit_sha":null,"homepage":"https://cocoapods.org/pods/WhiteboxCryptographySDK","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DrDijkstra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-10T17:45:27.000Z","updated_at":"2025-09-22T22:26:48.000Z","dependencies_parsed_at":"2024-12-11T21:16:41.647Z","dependency_job_id":null,"html_url":"https://github.com/DrDijkstra/WhiteboxCryptography","commit_stats":null,"previous_names":["drdijkstra/whiteboxcryptography"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DrDijkstra/WhiteboxCryptography","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrDijkstra%2FWhiteboxCryptography","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrDijkstra%2FWhiteboxCryptography/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrDijkstra%2FWhiteboxCryptography/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrDijkstra%2FWhiteboxCryptography/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DrDijkstra","download_url":"https://codeload.github.com/DrDijkstra/WhiteboxCryptography/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrDijkstra%2FWhiteboxCryptography/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280246619,"owners_count":26297801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aes","crypto","cryptography"],"created_at":"2025-10-21T10:35:39.697Z","updated_at":"2025-10-21T10:35:43.602Z","avatar_url":"https://github.com/DrDijkstra.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/DrDijkstra/WhiteboxCryptography/develop/Images/wbc.png\" alt=\"White Box Cryptography Logo\"\u003e\n\n\n# White Box Cryptography Framework\n\n[![Swift](https://img.shields.io/badge/Swift-5.9_5.10_6.0-orange?style=flat-square)](https://img.shields.io/badge/Swift-5.9_5.10_6.0-Orange?style=flat-square)\n[![Platforms](https://img.shields.io/badge/Platforms-macOS_iOS_tvOS_watchOS_visionOS-yellowgreen?style=flat-square)](https://img.shields.io/badge/Platforms-macOS_iOS_tvOS_watchOS_visionOS-Green?style=flat-square)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/WhiteboxCryptography.svg?style=flat-square)](https://img.shields.io/cocoapods/v/WhiteboxCryptography.svg)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat-square)](https://github.com/Carthage/Carthage)\n[![Swift Package Manager](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)\n\n\nA high-performance White Box Cryptography (WBC) framework designed to secure cryptographic keys and operations in a way that prevents attackers from extracting or reverse-engineering them, even when the code and memory are fully exposed. This framework implements cryptographic algorithms in a manner that resists various side-channel and reverse-engineering attacks.\n\n## Features\n\n- **Secure Key Management**: Protects cryptographic keys from extraction or analysis.\n- **Encryption Algorithms**: Provides implementations for a variety of cryptographic algorithms in a white-box secure fashion.\n- **Side-Channel Attack Resistance**: Built with techniques that prevent leaking sensitive data during execution.\n- **Cross-Platform Support**: Compatible with iOS and macOS applications.\n- **Optimized Performance**: Designed to provide a balance between security and efficiency.\n\n## Installation\n\n### Using Swift Package Manager (SPM)\n\nTo integrate the White Box Cryptography framework into your Xcode project using Swift Package Manager, follow these steps:\n\n1. Open your Xcode project.\n2. Go to **File \u003e Swift Packages \u003e Add Package Dependency**.\n3. Enter the repository URL for this framework: `https://github.com/DrDijkstra/WhiteboxCryptography`.\n4. Choose the version range or tag for the release you want to use.\n\n### Using CocoaPods\n\n1. Add the following to your `Podfile`:\n\n```ruby\n pod 'WhiteboxCryptography', '~\u003e 1.0'\n```\n\n2. Run `pod install` in the terminal.\n\n3. Open the `.xcworkspace` file in Xcode.\n\n### Using Carthage\n\nTo integrate White Box Cryptography with Carthage, add the following to your `Cartfile`:\n\n```\ngithub \"DrDijkstra/WhiteboxCryptography\"\n```\n\nThen run `carthage update` to build the framework.\n\n## Usage\n\nTo use the White Box Cryptography framework in your project, follow the appropriate instructions based on your package manager:\n\n\n\nSimply import the framework into your Swift files:\n\n```swift\nimport WhiteboxCryptography\n```\n\n---\n\n### Notes:\n- Ensure the framework is properly integrated into your project according to the package manager's setup instructions.\n- Double-check the capitalization of `WhiteboxCryptography` and `WhiteboxCryptographySDK` as some environments may be case-sensitive.\n\n### Example Usage of `WhiteboxCryptographySDK`\n\n```swift\n// Example of how to use the encryption and decryption functionalities\n\nimport Foundation\nimport WhiteboxCryptography\n\n// Initialize the WhiteboxCryptographySDK with a memory key\nlet memoryKey = \"your-memory-key\".data(using: .utf8)!\nlet whiteboxSDK = WhiteboxCryptographySDK(memoryKey: memoryKey)\n\n// Sample data to encrypt\nlet data = \"Sensitive data\".data(using: .utf8)!\n\n// Define a cryptographic key and IV\nlet encryptionKey = \"your-encryption-key\".data(using: .utf8)!\nlet iv = \"your-iv-string\".data(using: .utf8) // Optional IV for block ciphers\nlet algorithm: CryptoAlgorithm = .aes(keySize: 256, mode: .ecb, processingType: .regular) // Replace with the actual algorithm\n\n// Encrypt the data\ndo {\n        if let encryptedData = try whiteboxSDK.encrypt(data: data, withKey: encryptionKey, iv: iv, algorithm: algorithm) {\n            print(\"Encrypted Data: \\(encryptedData.base64EncodedString())\")\n            \n            // Decrypt the data\n            if let decryptedData = try whiteboxSDK.decrypt(data: encryptedData, withKey: encryptionKey, iv: iv, algorithm: algorithm) {\n                let decryptedString = String(data: decryptedData, encoding: .utf8)\n                print(\"Decrypted String: \\(decryptedString ?? \"Failed to decrypt\")\")\n            } else {\n                print(\"Decryption failed\")\n            }\n        } else {\n            print(\"Encryption failed\")\n        }\n    }catch(let error){\n    \n    }\n}\n```\n---\n\n### Available Cryptographic Algorithms\n\nThe following cryptographic algorithms are available in this implementation:\n\n- **AES** (Advanced Encryption Standard): A symmetric key encryption standard used for securing data.\n  - Supports different key sizes (`AESKeySize`) and modes of operation (`AESMode`).\n  \n- **DES** (Data Encryption Standard): A symmetric-key block cipher, formerly a widely-used method of data encryption.\n\n- **Triple DES** (3DES): An enhancement of DES that applies the DES algorithm three times to each data block.\n\n- **CAST**: A family of symmetric-key block ciphers designed for strong encryption.\n\n- **RC2** (Ron's Code 2): A block cipher designed for use in hardware or software environments, often used for file encryption.\n\nThe framework supports encryption, decryption, and hashing for these algorithms in a white-box cryptographic fashion.\n\n## License\n\nThis framework is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for more details.\n\n## Contributing\n\nWe welcome contributions to improve the framework! To contribute:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Make your changes.\n4. Commit your changes (`git commit -am 'Add new feature'`).\n5. Push to the branch (`git push origin feature-branch`).\n6. Create a pull request.\n\n## Contact\n\nFor questions or support, please contact us at:  \nEmail: deysanjay121@gmail.com  \nGitHub: [https://github.com/DrDijkstra/WhiteboxCryptography](https://github.com/DrDijkstra/WhiteboxCryptography)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrdijkstra%2Fwhiteboxcryptography","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrdijkstra%2Fwhiteboxcryptography","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrdijkstra%2Fwhiteboxcryptography/lists"}