{"id":4468,"url":"https://github.com/remobile/react-native-des","last_synced_at":"2025-04-13T10:56:35.870Z","repository":{"id":57336490,"uuid":"45579028","full_name":"remobile/react-native-des","owner":"remobile","description":"A des crypto for react-native","archived":false,"fork":false,"pushed_at":"2024-03-01T15:35:51.000Z","size":1052,"stargazers_count":22,"open_issues_count":4,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-26T03:32:10.754Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remobile.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":"2015-11-05T01:27:38.000Z","updated_at":"2024-08-15T18:47:12.647Z","dependencies_parsed_at":"2024-08-15T19:03:36.374Z","dependency_job_id":null,"html_url":"https://github.com/remobile/react-native-des","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/remobile%2Freact-native-des","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remobile%2Freact-native-des/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remobile%2Freact-native-des/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remobile%2Freact-native-des/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remobile","download_url":"https://codeload.github.com/remobile/react-native-des/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703194,"owners_count":21148116,"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-01-05T20:17:13.504Z","updated_at":"2025-04-13T10:56:35.850Z","avatar_url":"https://github.com/remobile.png","language":"Objective-C","funding_links":[],"categories":["Components"],"sub_categories":["Utils \u0026 Infra"],"readme":"# React Native Des (remobile)\nA des crypto for react-native\n\n## Installation\n```sh\nnpm install @remobile/react-native-des --save\n```\n### Installation (iOS)\n* Drag RCTDes.xcodeproj to your project on Xcode.\n* Click on your main project file (the one that represents the .xcodeproj) select Build Phases and drag libRCTDes.a from the Products folder inside the RCTDes.xcodeproj.\n* Look for Header Search Paths and make sure it contains both $(SRCROOT)/../../../react-native/React as recursive.\n\n### Installation (Android)\n```gradle\n...\ninclude ':react-native-des'\nproject(':react-native-des').projectDir = new File(rootProject.projectDir, '../node_modules/@remobile/react-native-des/android/RCTDes')\n```\n\n* In `android/app/build.gradle`\n\n```gradle\n...\ndependencies {\n    ...\n    compile project(':react-native-des')\n}\n```\n\n* register module (in MainApplication.java)\n\n```java\n......\nimport com.remobile.des.RCTDesPackage;  // \u003c--- import\n\n......\n\n@Override\nprotected List\u003cReactPackage\u003e getPackages() {\n   ......\n   new RCTDesPackage(),            // \u003c------ add here\n   ......\n}\n\n\n## Usage\n\n### Example\n```js\nvar Des = require('@remobile/react-native-des');\n\nDes.encrypt(\"fangyunjiang is a good developer\", \"ABCDEFGH\", function(base64) {\n    console.log(base64); //wWcr2BJdyldTHn4z3AxA0qBIdHQkIKmpqhTgNuRd3fAFXzvIO5347g==\n    Des.decrypt(base64, \"ABCDEFGH\", function(text) {\n        console.log(text); //fangyunjiang is a good developer\n    }, function(){\n        console.log(\"error\");\n    });\n}, function() {\n    console.log(\"error\");\n});\n```\n\n### method\n- `encrypt(text, key, callback)`\n- `encrypt(base64, key, callback)`\n\n\n## Server Side\n* see https://github.com/remobile/react-native-des/blob/master/server\n* support java, nodejs, js, php (see example)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremobile%2Freact-native-des","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremobile%2Freact-native-des","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremobile%2Freact-native-des/lists"}