{"id":31827822,"url":"https://github.com/lambdapioneer/sloth-ios","last_synced_at":"2025-10-11T19:19:01.717Z","repository":{"id":208268764,"uuid":"721161823","full_name":"lambdapioneer/sloth-ios","owner":"lambdapioneer","description":"Synchronised RainbowSloth Swift package","archived":false,"fork":false,"pushed_at":"2024-05-24T20:32:47.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-13T11:46:12.221Z","etag":null,"topics":["ios","password-hashing","sloth","swift"],"latest_commit_sha":null,"homepage":"https://github.com/lambdapioneer/sloth","language":"Swift","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lambdapioneer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-11-20T13:37:12.000Z","updated_at":"2024-05-24T20:32:51.000Z","dependencies_parsed_at":"2023-11-23T10:25:48.260Z","dependency_job_id":"c76eb5e0-58aa-46b3-ad7c-4614b1186793","html_url":"https://github.com/lambdapioneer/sloth-ios","commit_stats":null,"previous_names":["lambdapioneer/sloth-ios"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/lambdapioneer/sloth-ios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdapioneer%2Fsloth-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdapioneer%2Fsloth-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdapioneer%2Fsloth-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdapioneer%2Fsloth-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lambdapioneer","download_url":"https://codeload.github.com/lambdapioneer/sloth-ios/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdapioneer%2Fsloth-ios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008463,"owners_count":26084460,"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-11T02:00:06.511Z","response_time":55,"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":["ios","password-hashing","sloth","swift"],"created_at":"2025-10-11T19:18:56.466Z","updated_at":"2025-10-11T19:19:01.712Z","avatar_url":"https://github.com/lambdapioneer.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sloth: iOS\n\nWe have implemented the SE-backed key stretching scheme RainbowSloth for iOS 15+.\nThis folder gets synced into a designated repository to allow inclusion as a Swift package dependency.\n\nFor changes refer to the main repository here: https://github.com/lambdapioneer/sloth\n\n\n## Setting up\n\nAdd this repository as a dependency to your `Package.swift` file like so:\n\n```swift\n    dependencies: [\n        // ...\n        .package(url: \"https://github.com/lambdapioneer/sloth-ios.git\", from: \"0.3.0\"),\n    ],\n    targets: [\n        .target(\n            name: \"YourAppTarget\",\n            dependencies: [\n                // ...\n                .product(name: \"RainbowSloth\", package: \"sloth-ios\")\n            ],\n            // ...\n        )\n        // ...\n    ]\n```\n\n\n## Using RainbowSloth\n\nAfter adding the dependency you can import the library in the respective `.swift` files and use it:\n\n```swift\nimport RainbowSloth\n\n// create a new Sloth instance\nlet sloth = RainbowSloth(withN: 100) // see paper on how to choose `n`\n\n// create a new key\nlet (storageState, key) = try sloth.keygen(\n    pw: \"user-passphrase\",\n    handle: \"your-identifier\",\n    outputLength: 32\n)\n\n// re-derive the same key later\nlet key = try sloth.derive(\n    storageState: storageState,\n    pw: \"user-passphrase\",\n    outputLength: 32\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdapioneer%2Fsloth-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdapioneer%2Fsloth-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdapioneer%2Fsloth-ios/lists"}