{"id":24734584,"url":"https://github.com/poowf/react-native-argon2","last_synced_at":"2025-10-10T04:31:01.311Z","repository":{"id":42697864,"uuid":"259727289","full_name":"poowf/react-native-argon2","owner":"poowf","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-05T14:21:25.000Z","size":124,"stargazers_count":5,"open_issues_count":5,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-15T00:36:28.934Z","etag":null,"topics":["argon2","crypto","encryption","hacktoberfest","hashing","password","react-native"],"latest_commit_sha":null,"homepage":"","language":"Java","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/poowf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-04-28T19:06:36.000Z","updated_at":"2023-12-29T17:05:13.000Z","dependencies_parsed_at":"2024-06-19T04:08:54.420Z","dependency_job_id":"da911f2a-b897-4f43-8234-5e7c408c0f57","html_url":"https://github.com/poowf/react-native-argon2","commit_stats":{"total_commits":29,"total_committers":2,"mean_commits":14.5,"dds":0.1724137931034483,"last_synced_commit":"4178718c22b321ee178d7cb6036ef61232803e02"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poowf%2Freact-native-argon2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poowf%2Freact-native-argon2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poowf%2Freact-native-argon2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poowf%2Freact-native-argon2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poowf","download_url":"https://codeload.github.com/poowf/react-native-argon2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235909614,"owners_count":19064595,"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","crypto","encryption","hacktoberfest","hashing","password","react-native"],"created_at":"2025-01-27T19:38:36.210Z","updated_at":"2025-10-10T04:30:55.966Z","avatar_url":"https://github.com/poowf.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-argon2\r\n\r\nReact Native Wrapper around native Argon2 implementations:\r\n\r\niOS: [CatCrypto](//github.com/ImKcat/CatCrypto)\r\n\r\nAndroid: [argon2kt](//github.com/lambdapioneer/argon2kt)\r\n\r\n## Getting started\r\n```bash\r\nnpm install react-native-argon2 --save\r\n```\r\n\r\nCompatibility Table\r\n\r\n| React Native Version | Package Version |\r\n|----------------------|-----------------|\r\n| 0.60 - 0.63.2        | ~0.1.0         |\r\n| 0.63.3               | ^1.0.0         |\r\n\r\n## Usage\r\n\r\n```javascript\r\nimport argon2 from 'react-native-argon2';\r\nconst password = 'password';\r\nconst salt = '1234567891011121314151617181920212223242526272829303132333435363';\r\nconst result = await argon2(password, salt, {});\r\nconst { rawHash, encodedHash } = result;\r\n// rawHash: 031d6c82ddede1200f4794605052745dd562bd4db358e23dac1b11c052eff8d9\r\n// encodedHash: $argon2id$v=19$m=32768,t=2,p=1$MTIzNDU2Nzg5MTAxMTEyMTMxNDE1MTYxNzE4MTkyMDIxMjIyMzI0MjUyNjI3MjgyOTMwMzEzMjMzMzQzNTM2Mw$Ax1sgt3t4SAPR5RgUFJ0XdVivU2zWOI9rBsRwFLv+Nk\r\n```\r\n\r\n### Input\r\nThe package takes in the following variables:\r\n\r\n| Parameter           | Type    |\r\n|---------------------|---------|\r\n| password            | string  |\r\n| salt                | string  |\r\n| config              | object  |\r\n| config.iterations   | integer |\r\n| config.memory       | integer |\r\n| config.parallelism  | integer |\r\n| config.hashLength   | integer |\r\n| config.mode         | string  |\r\n\r\nYou are not required to configure the third parameter which is the `config` object, however you do have to provide an empty object to it if you are not changing any of the values. You can set config values with the following example:\r\n\r\n```javascript\r\nconst result = await argon2(\r\n    password,\r\n    salt,\r\n    {\r\n      iterations: 5,\r\n      memory: 16 * 1024,\r\n      parallelism: 2,\r\n      hashLength: 20,\r\n      mode: 'argon2i'\r\n    }\r\n);\r\n```\r\n\r\n\r\n### Output\r\n\r\n`rawHash` is the hexadecimal representation\r\n\r\n`encodedHash` is the string representation\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoowf%2Freact-native-argon2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoowf%2Freact-native-argon2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoowf%2Freact-native-argon2/lists"}