{"id":21659275,"url":"https://github.com/rocwong-cn/react-native-aes-kit","last_synced_at":"2025-07-17T22:31:44.547Z","repository":{"id":57335092,"uuid":"100358847","full_name":"rocwong-cn/react-native-aes-kit","owner":"rocwong-cn","description":"AES-CBC-PKCS5Padding","archived":false,"fork":false,"pushed_at":"2018-06-22T14:36:26.000Z","size":92,"stargazers_count":18,"open_issues_count":7,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-28T15:59:22.344Z","etag":null,"topics":["aes","cbc","crypto","encrypt","pkcs5","react-native-aes"],"latest_commit_sha":null,"homepage":"","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/rocwong-cn.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}},"created_at":"2017-08-15T08:56:16.000Z","updated_at":"2023-05-30T21:47:17.000Z","dependencies_parsed_at":"2022-08-31T16:41:45.542Z","dependency_job_id":null,"html_url":"https://github.com/rocwong-cn/react-native-aes-kit","commit_stats":null,"previous_names":["rocwangv/react-native-aes-kit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocwong-cn%2Freact-native-aes-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocwong-cn%2Freact-native-aes-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocwong-cn%2Freact-native-aes-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocwong-cn%2Freact-native-aes-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rocwong-cn","download_url":"https://codeload.github.com/rocwong-cn/react-native-aes-kit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226305667,"owners_count":17603857,"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":["aes","cbc","crypto","encrypt","pkcs5","react-native-aes"],"created_at":"2024-11-25T09:30:46.050Z","updated_at":"2024-11-25T09:32:13.744Z","avatar_url":"https://github.com/rocwong-cn.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"# react-native-aes-kit\n\n\u003e AES-CBC-PKCS5Padding\n\n## Install \n\n```\nnpm i --S react-native-aes-kit\n\nreact-native link react-native-aes-kit\n```\n\n\n## methods\n* encrypt\n\n| Name                    | Type  | Note\n| ----------------------- |:-------:| -------\n| sourceText     | string      |  plaintxt\n| secretKey     | string     | secret key,max 16 bytes\n| iv      | string     | initialization vector,max 16 bytes\n\n* decrypt\n\n| Name                    | Type  | Note\n| ----------------------- |:-------:| -------\n| sourceText     | string      |  cipher txt\n| secretKey     | string     | secret key,max 16 bytes\n| iv      | string     | initialization vector,max 16 bytes\n\n\n## Usage \n\n```js\nimport AesCrypto from 'react-native-aes-kit';\n\nconst plaintxt = 'test';\nconst secretKey = '0102030405060708';\nconst iv = '1112131415161718';\n\nAesCrypto.encrypt(plaintxt,secretKey,iv).then(cipher=\u003e{\n    console.log(cipher);// return a string type cipher\n    this.setState({ cipher });\n}).catch(err=\u003e{\n    console.log(err);\n});\n\nAesCrypto.decrypt(this.state.cipher,secretKey,iv).then(plaintxt=\u003e{\n    console.log(plaintxt);// return a string type plaintxt\n}).catch(err=\u003e{\n    console.log(err);\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocwong-cn%2Freact-native-aes-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocwong-cn%2Freact-native-aes-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocwong-cn%2Freact-native-aes-kit/lists"}