{"id":17957523,"url":"https://github.com/itinance/react-native-sha256","last_synced_at":"2025-04-04T20:13:00.801Z","repository":{"id":20986001,"uuid":"91495142","full_name":"itinance/react-native-sha256","owner":"itinance","description":"sha256 natively for react-native","archived":false,"fork":false,"pushed_at":"2024-03-06T09:38:55.000Z","size":682,"stargazers_count":99,"open_issues_count":25,"forks_count":49,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-29T11:29:17.764Z","etag":null,"topics":["hash-algorithm","react-native","sha256"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/itinance.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":"2017-05-16T19:12:26.000Z","updated_at":"2024-09-09T12:30:08.000Z","dependencies_parsed_at":"2024-06-18T14:06:03.873Z","dependency_job_id":"19359650-8787-451f-8ca7-541b1f342d51","html_url":"https://github.com/itinance/react-native-sha256","commit_stats":{"total_commits":59,"total_committers":17,"mean_commits":"3.4705882352941178","dds":"0.44067796610169496","last_synced_commit":"de9d8091d5a8a2c5be5384c4809c3524847fa167"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itinance%2Freact-native-sha256","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itinance%2Freact-native-sha256/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itinance%2Freact-native-sha256/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itinance%2Freact-native-sha256/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itinance","download_url":"https://codeload.github.com/itinance/react-native-sha256/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242681,"owners_count":20907134,"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":["hash-algorithm","react-native","sha256"],"created_at":"2024-10-29T10:55:27.831Z","updated_at":"2025-04-04T20:13:00.738Z","avatar_url":"https://github.com/itinance.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"# react-native-sha256\nsha256 natively for react-native\n\nSpeed is king, especially for javascript-driven applications with react-native!\nThis library provides native sha256-hashes for a string on both iOS and Android\nnatively. \n\n# Installation\n```\nyarn add react-native-sha256\nreact-native link\n```\n\n## Adding with CocoaPods\n\nAdd the RNSha256 pod to your list of application pods in your Podfile, using the path from the Podfile to the installed module:\n\n```\npod 'RNSha256', :path =\u003e '../node_modules/react-native-sha256'\n```\n\nInstall pods as usual:\n```\npod install\n```\n\n# Usage\n\nImport the lib into your project:\n\n```javascript\nimport { sha256, sha256Bytes } from 'react-native-sha256';\n```\n\nBuild a sha256-hash:\n\n```javascript\nsha256(\"Test\").then( hash =\u003e {\n    console.log(hash);\n})\n```\n\n```javascript\nconst message = new Uint8Array(8);\nconst bytes = Array.from(message);\n\nsha256Bytes(bytes).then( hash =\u003e {\n    console.log(hash);\n})\n```\n\n# File-Hashes\n\nIf you need to calculate SHA-256 hashes from a file, use this method of react-native-fs:\n(https://github.com/itinance/react-native-fs#hashfilepath-string-algorithm-string-promisestring)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitinance%2Freact-native-sha256","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitinance%2Freact-native-sha256","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitinance%2Freact-native-sha256/lists"}