{"id":1942,"url":"https://github.com/onmyway133/Arcane","last_synced_at":"2025-08-02T05:33:13.724Z","repository":{"id":56902407,"uuid":"58303038","full_name":"onmyway133/Arcane","owner":"onmyway133","description":":trident: CommonCrypto in Swift, and more","archived":false,"fork":false,"pushed_at":"2021-01-24T22:29:09.000Z","size":796,"stargazers_count":283,"open_issues_count":4,"forks_count":22,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-25T06:02:18.205Z","etag":null,"topics":["commoncrypto","swift"],"latest_commit_sha":null,"homepage":"https://onmyway133.github.io/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onmyway133.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-08T08:21:02.000Z","updated_at":"2024-10-17T00:45:37.000Z","dependencies_parsed_at":"2022-08-21T01:50:38.278Z","dependency_job_id":null,"html_url":"https://github.com/onmyway133/Arcane","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FArcane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FArcane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FArcane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FArcane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onmyway133","download_url":"https://codeload.github.com/onmyway133/Arcane/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228443754,"owners_count":17920782,"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","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":["commoncrypto","swift"],"created_at":"2024-01-05T20:15:59.525Z","updated_at":"2024-12-06T09:30:40.743Z","avatar_url":"https://github.com/onmyway133.png","language":"Swift","funding_links":[],"categories":["Security"],"sub_categories":["Encryption","Other free courses"],"readme":"# Arcane\n\n❤️ Support my apps ❤️ \n\n- [Push Hero - pure Swift native macOS application to test push notifications](https://onmyway133.com/pushhero)\n- [PastePal - Pasteboard, note and shortcut manager](https://onmyway133.com/pastepal)\n- [Quick Check - smart todo manager](https://onmyway133.com/quickcheck)\n- [Alias - App and file shortcut manager](https://onmyway133.com/alias)\n- [My other apps](https://onmyway133.com/apps/)\n\n❤️❤️😇😍🤘❤️❤️\n\nCommonCrypto in Swift\n\n[![CI Status](http://img.shields.io/travis/onmyway133/Arcane.svg?style=flat)](https://travis-ci.org/onmyway133/Arcane)\n[![Version](https://img.shields.io/cocoapods/v/Arcane.svg?style=flat)](http://cocoadocs.org/docsets/Arcane)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![License](https://img.shields.io/cocoapods/l/Arcane.svg?style=flat)](http://cocoadocs.org/docsets/Arcane)\n[![Platform](https://img.shields.io/cocoapods/p/Arcane.svg?style=flat)](http://cocoadocs.org/docsets/Arcane)\n\u003cimg src=\"https://img.shields.io/badge/%20in-swift%204.0-orange.svg\"\u003e\n\n![](Screenshots/Arcane.png)\n\n## Description\n\nRead my answer here [Importing CommonCrypto in a Swift framework](http://stackoverflow.com/a/37125785/1418457)\n\n## Features\n\n- Work on NSData, String\n- Message Digest, SHA, HMAC, Base64\n- Hash Algorithm: MD2, MD4, MD5, SHA1, SHA256, SHA224, SHA384, SHA512\n\n### Hash\n\n```swift\nHash.MD5(\"https://www.google.com/logos/doodles/2016/parents-day-in-korea-5757703554072576-hp2x.jpg\") // 0dfb10e8d2ae771b3b3ed4544139644e\nHash.SHA246(\"https://www.google.com/logos/doodles/2016/parents-day-in-korea-5757703554072576-hp2x.jpg\") // cb051d58a60b9581ff4c7ba63da07f9170f61bfbebab4a39898432ec970c3754\n```\n\n### HMAC\n\n```swift\nHMAC.SHA1(\"https://www.google.com/logos/doodles/2016/parents-day-in-korea-5757703554072576-hp2x.jpg\", key: \"google\") // 5f4474c8872d73c1490241ab015f6c672c6dcdc8\n```\n\n### Base64\n\n```swift\nBase64.SHA1(\"https://www.google.com/logos/doodles/2016/parents-day-in-korea-5757703554072576-hp2x.jpg\", key: \"google\") // X0R0yIctc8FJAkGrAV9sZyxtzcg=\n```\n\n### AES\n\n```swift\nlet _ = AES.encrypt(\"string\", key: \"secret\")\nlet _ = AES.decrypt(data, key: keyData)\n```\n\n## Installation\n\nArcane is distributed using the Swift Package Manager. To install it into a project, add it as a dependency within your Package.swift manifest:\n\n```swift\nlet package = Package(\n    ...\n    dependencies: [\n        .package(url: \"https://github.com/onmyway133/Arcane.git\", from: \"3.0.0\")\n    ],\n    ...\n)\n```\n\nThen import Arcane in your project\n\n`import Arcane`\n\n## Author\n\nKhoa Pham, onmyway133@gmail.com\n\n## Contributing\n\nWe would love you to contribute to **Arcane**, check the [CONTRIBUTING](https://github.com/onmyway133/Arcane/blob/master/CONTRIBUTING.md) file for more info.\n\n## License\n\n**Arcane** is available under the MIT license. See the [LICENSE](https://github.com/onmyway133/Arcane/blob/master/LICENSE.md) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonmyway133%2FArcane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonmyway133%2FArcane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonmyway133%2FArcane/lists"}