{"id":4464,"url":"https://github.com/mvayngrib/react-native-aes","last_synced_at":"2025-09-27T13:32:01.231Z","repository":{"id":66829957,"uuid":"48185323","full_name":"mvayngrib/react-native-aes","owner":"mvayngrib","description":"aes encryption/decryption in react native","archived":false,"fork":false,"pushed_at":"2015-12-17T16:42:53.000Z","size":17,"stargazers_count":29,"open_issues_count":2,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-16T04:34:43.050Z","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/mvayngrib.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}},"created_at":"2015-12-17T16:24:20.000Z","updated_at":"2024-05-26T21:34:07.000Z","dependencies_parsed_at":"2023-03-19T01:18:34.221Z","dependency_job_id":null,"html_url":"https://github.com/mvayngrib/react-native-aes","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/mvayngrib%2Freact-native-aes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvayngrib%2Freact-native-aes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvayngrib%2Freact-native-aes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvayngrib%2Freact-native-aes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvayngrib","download_url":"https://codeload.github.com/mvayngrib/react-native-aes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234440285,"owners_count":18832977,"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.391Z","updated_at":"2025-09-27T13:31:55.965Z","avatar_url":"https://github.com/mvayngrib.png","language":"Objective-C","funding_links":[],"categories":["Components"],"sub_categories":["Utils \u0026 Infra"],"readme":"# react-native-aes\n\nAES encryption/decryption in react native\n\n## Supported Ciphers\n\n* AES-256-CBC\n\n## Usage\n\n```js\nvar AES = require('react-native-aes')\nvar Buffer = require('buffer').Buffer\n\nvar stringInput = 'hey ho'\nvar bufferInput = new Buffer(stringInput)\n// sample key\nvar key = new Buffer('f0ki13SQeRpLQrqk73UxhBAI7vd35FgYrNkVybgBIxc=', 'base64')\nvar cipherName = 'AES-256-CBC'\nAES.encryptWithCipher(\n  cipherName,   // String\n  bufferInput,  // Buffer (input data)\n  key,          // AES key, e.g. 32 bytes of random data\n  function (err, encrypted) {\n//  \"encrypted\" is of the form\n//  {\n//    ciphertext: Buffer,\n//    iv: Buffer\n//  }\n//\n//  you'll need both parts to decrypt\n\n    AES.decryptWithCipher(\n      cipherName,             // String\n      encrypted.ciphertext,   // Buffer (input data)\n      key,\n      encrypted.iv,           // Buffer\n      function (err, plaintext) {\n        // plaintext is a Buffer\n        if (plaintext.toString() !== stringInput) {\n          throw new Error('time to report an issue!')\n        }\n      }\n    )\n  }\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvayngrib%2Freact-native-aes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvayngrib%2Freact-native-aes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvayngrib%2Freact-native-aes/lists"}