{"id":17337511,"url":"https://github.com/zkrige/rn-crypto","last_synced_at":"2025-03-27T08:12:11.536Z","repository":{"id":80876852,"uuid":"125849574","full_name":"zkrige/rn-crypto","owner":"zkrige","description":"RSA Cryptographic support for LifeKey-RN","archived":false,"fork":false,"pushed_at":"2018-06-11T10:01:07.000Z","size":284,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T13:11:51.415Z","etag":null,"topics":[],"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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zkrige.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":"2018-03-19T11:49:26.000Z","updated_at":"2018-06-11T10:01:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e33e150-39c3-4148-90df-87f2924519e0","html_url":"https://github.com/zkrige/rn-crypto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkrige%2Frn-crypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkrige%2Frn-crypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkrige%2Frn-crypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkrige%2Frn-crypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkrige","download_url":"https://codeload.github.com/zkrige/rn-crypto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806458,"owners_count":20675298,"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":[],"created_at":"2024-10-15T15:35:12.365Z","updated_at":"2025-03-27T08:12:11.517Z","avatar_url":"https://github.com/zkrige.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-crypto-module\n\n## Getting started\n\n`$ npm install react-native-crypto-module --save`\n\n### Mostly automatic installation\n\n`$ react-native link react-native-crypto-module`\n\n### Manual installation\n\n\n#### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `react-native-crypto-module` and add `RNCryptoModule.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNCryptoModule.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project (`Cmd+R`)\u003c\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainActivity.java`\n  - Add `import com.reactlibrary.RNCryptoModulePackage;` to the imports at the top of the file\n  - Add `new RNCryptoModulePackage()` to the list returned by the `getPackages()` method\n2. Append the following lines to `android/settings.gradle`:\n  \t```\n  \tinclude ':react-native-crypto-module'\n  \tproject(':react-native-crypto-module').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-crypto-module/android')\n  \t```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n  \t```\n      compile project(':react-native-crypto-module')\n  \t```\n\n#### Windows\n[Read it! :D](https://github.com/ReactWindows/react-native)\n\n1. In Visual Studio add the `RNCryptoModule.sln` in `node_modules/react-native-crypto-module/windows/RNCryptoModule.sln` folder to their solution, reference from their app.\n2. Open up your `MainPage.cs` app\n  - Add `using Crypto.Module.RNCryptoModule;` to the usings at the top of the file\n  - Add `new RNCryptoModulePackage()` to the `List\u003cIReactPackage\u003e` returned by the `Packages` method\n\n\n## Usage\n```javascript\nimport RNCryptoModule from 'react-native-crypto-module';\n\n// TODO: What to do with the module?\nRNCryptoModule;\n```\n  \n\n# Cryptographic module for React Native\n\nMost method implementations are borrowed from [react-native-rsa-native](https://github.com/amitaymolko/react-native-rsa-native/),\nwith some adjustments for a specific use case.\n\n## Ported methods\n\n* `getKeyStoreIsLoaded` - always returns true\n* `getKeyAliases` - returns list of key aliases\n* `containsKeyAlias` - indicates whether key alias already exists\n* `deleteKeyEntry` - removes key pair\n* `loadKeyStore` - does nothing (not applicable on iOS)\n* `unloadKeyStore` - does nothing (not applicable on iOS)\n* `sign` - signs a message using a given private key\n* `addKeyPair` - generate and save a new key pair, returns public key PEM\n* `secureRandom` - generate secure random (Base64 encoded)\n\n## Methods not ported\n\n* `getKeyStoreCertificate` - unused, not applicable on iOS\n* `keyStoreSize` - unused, not applicable on iOS\n* `verify` - unused, Android implementation is not valid\n* `getKeyAsPem` - unused\n\n## Notes\n\nAll methods are implemented asynchronously and return a promise\n\n## Installation\n\nClone the repository, then\n\n```\n$ cd CryptoApp\n$ react-native install ../CryptoModule # ignore error at the end of installation\n$ react-native link react-native-crypto-module\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkrige%2Frn-crypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkrige%2Frn-crypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkrige%2Frn-crypto/lists"}