{"id":19791737,"url":"https://github.com/solidstategroup/react-native-secured-storage","last_synced_at":"2025-09-11T21:51:14.667Z","repository":{"id":81175511,"uuid":"241865363","full_name":"SolidStateGroup/react-native-secured-storage","owner":"SolidStateGroup","description":"React Native Secured Storage - Stores encrypted data to AsyncStorage","archived":false,"fork":false,"pushed_at":"2020-09-04T03:24:26.000Z","size":5,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-28T15:15:19.812Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"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/SolidStateGroup.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,"publiccode":null,"codemeta":null}},"created_at":"2020-02-20T11:18:30.000Z","updated_at":"2020-03-03T18:03:58.000Z","dependencies_parsed_at":"2023-03-06T16:00:17.384Z","dependency_job_id":null,"html_url":"https://github.com/SolidStateGroup/react-native-secured-storage","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SolidStateGroup/react-native-secured-storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolidStateGroup%2Freact-native-secured-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolidStateGroup%2Freact-native-secured-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolidStateGroup%2Freact-native-secured-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolidStateGroup%2Freact-native-secured-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SolidStateGroup","download_url":"https://codeload.github.com/SolidStateGroup/react-native-secured-storage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolidStateGroup%2Freact-native-secured-storage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274712480,"owners_count":25335924,"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-09-11T02:00:13.660Z","response_time":74,"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":[],"created_at":"2024-11-12T07:04:41.568Z","updated_at":"2025-09-11T21:51:14.653Z","avatar_url":"https://github.com/SolidStateGroup.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Secured Storage\n\n## Getting Started\n\n### Install\n\n```\nyarn add react-native-secured-storage react-native-keychain https://github.com/SolidStateGroup/react-native-pbkdf2 @react-native-community/async-storage\n```\n\nor\n\n```\nnpm install --save react-native-secured-storage react-native-keychain https://github.com/SolidStateGroup/react-native-pbkdf2 @react-native-community/async-storage\n```\n\n### Link\n\n- **React Native 0.60+**\n\n\n[CLI autolink feature](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md) links the module while building the app. \n\n\n- **React Native \u003c= 0.59**\n\n\n```bash\n$ react-native link react-native-keychain react-native-pbkdf2 @react-native-community/async-storage\n```\n\n\n*Note* For `iOS` using `cocoapods`, run:\n\n```bash\n$ cd ios/ \u0026\u0026 pod install\n```\n\nSee docs for [manual linking guide](docs/Linking.md)\n\n### **Upgrading to React Native *0.60+*** \n \nNew React Native comes with `autolinking` feature, which automatically links Native Modules in your project.\nIn order to get it to work, make sure you `unlink` dependencies first first:\n\n```bash\n$ react-native unlink react-native-keychain react-native-pbkdf2 @react-native-community/async-storage\n```\n\n## Usage\n\n### Import\n\n```js\nimport SecuredStorage from 'react-native-secured-storage';\n```\n\n### Initialise\n\n```js\nawait SecuredStorage.init('mypassword');\n```\n\n### Unlock storage / Get data\n\n`get()` would be called once on relaunching the app if secured storage has already been initialised.\n\n```js\nconst storage = await SecuredStorage.get();\nconst mydata = storage['mydata'];\nconst mydata2 = SecuredStorage.storage['mydata2'];\n```\n\n### Store data\n\n```js\nawait SecuredStorage.setItem('key', {complex: 'object'});\nawait SecuredStorage.setItem('key', null, 'or just a string');\n```\n\n### Remove data\n\n```js\nawait SecuredStorage.removeItem('key');\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidstategroup%2Freact-native-secured-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolidstategroup%2Freact-native-secured-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidstategroup%2Freact-native-secured-storage/lists"}