{"id":18037707,"url":"https://github.com/tmthecoder/argon2swift","last_synced_at":"2025-03-27T09:31:58.001Z","repository":{"id":42077532,"uuid":"330066055","full_name":"tmthecoder/Argon2Swift","owner":"tmthecoder","description":"An Argon2 Wrapper for Swift","archived":false,"fork":false,"pushed_at":"2023-03-15T22:22:56.000Z","size":52493,"stargazers_count":27,"open_issues_count":3,"forks_count":16,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-30T01:51:07.630Z","etag":null,"topics":["argon2","swift"],"latest_commit_sha":null,"homepage":"https://docs.tmthecoder.dev/Argon2Swift/","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/tmthecoder.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":"2021-01-16T02:16:00.000Z","updated_at":"2024-07-26T08:25:46.000Z","dependencies_parsed_at":"2024-06-21T04:18:15.101Z","dependency_job_id":"fadd51cd-4565-471b-bfec-13fd15c253e6","html_url":"https://github.com/tmthecoder/Argon2Swift","commit_stats":{"total_commits":79,"total_committers":4,"mean_commits":19.75,"dds":0.06329113924050633,"last_synced_commit":"53543623fefe68461b7eeea03d7f96677c2fd76d"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmthecoder%2FArgon2Swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmthecoder%2FArgon2Swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmthecoder%2FArgon2Swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmthecoder%2FArgon2Swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmthecoder","download_url":"https://codeload.github.com/tmthecoder/Argon2Swift/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222226227,"owners_count":16951816,"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":["argon2","swift"],"created_at":"2024-10-30T13:13:25.591Z","updated_at":"2024-10-30T13:13:26.319Z","avatar_url":"https://github.com/tmthecoder.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Argon2Swift\n![Argon2Swift](https://github.com/tmthecoder/Argon2Swift/workflows/Argon2Swift/badge.svg)\n[![Swift](https://github.com/tmthecoder/Argon2Swift/actions/workflows/Swift.yml/badge.svg)](https://github.com/tmthecoder/Argon2Swift/actions/workflows/Swift.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nSwift bindings for the reference C implementation of [Argon2], the winner of the [Password Hash Competition].\n\n[Argon2]: https://github.com/P-H-C/phc-winner-argon2\n\n[Password Hash Competition]: https://password-hashing.net\n\n## Installation (Cocoapods)\n\nArgon2Swift can be installed via Cocoapods by adding the following to your `Podfile`:\n\n```\npod Argon2Swift\n```\n\n## Installation (SPM)\n\nArgon2Swift can be installed via SPM (Swift Package Manger) by adding the following to your depencencies:\n\n```swift\n.package(url: \"https://github.com/tmthecoder/Argon2Swift.git\", .branch(\"main\"))\n```\n\n## Usage\n\nHigh-level hashing and verification (for direct hashing \u0026 verification of byte arrays, check the example)\n\n```swift\nimport Argon2Swift\n\n// Create a password and a salt\nlet password = \"password\"\nlet s = Salt.newSalt()\n//Hash with pre-set params (iterations: 32, memory: 256, parallelism: 2, length: 32, type: Argon2Type.i, version: Argon2Version.V13)\nlet result = try! Argon2Swift.hashPasswordString(password: password, salt: s)\n\n//Raw hash values available as int list, base 64 string, and hex string\nlet hashData = result.hashData()\nlet base64Hash = result.base64String()\nlet hexHash = result.hexString()\n\n//Encoded hash values available as int list and encoded string\nlet encodedData = result.encodedData()\nlet encodedString = result.encodedString()\n\n//Verify password (returns true/false), uses default type (Argon2Type.i)\nlet verified = try! Argon2Swift.verifyHashString(password: password, hash: stringEncoded);\n```\n\n## Features and bugs\n\nPlease file feature requests and bugs at the [issue tracker].\n\n[issue tracker]: https://github.com/tmthecoder/Argon2Swift/issues\n\n## Licensing\n\n- Argon2Swift is Licensed under the [MIT License]\n- The C implementation of [Argon2] is licensed under a dual [Apache and CC0 License]\n\n[MIT License]: https://github.com/tmthecoder/Argon2Swift/blob/main/LICENSE\n\n[Argon2]: https://github.com/P-H-C/phc-winner-argon2\n\n[Apache and CC0 License]: https://github.com/P-H-C/phc-winner-argon2/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmthecoder%2Fargon2swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmthecoder%2Fargon2swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmthecoder%2Fargon2swift/lists"}