{"id":13612115,"url":"https://github.com/videojs/aes-decrypter","last_synced_at":"2025-04-13T11:31:32.465Z","repository":{"id":9202663,"uuid":"61236949","full_name":"videojs/aes-decrypter","owner":"videojs","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-22T09:29:08.000Z","size":1147,"stargazers_count":36,"open_issues_count":2,"forks_count":16,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-03-11T15:51:14.767Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/videojs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2016-06-15T19:58:49.000Z","updated_at":"2025-03-01T18:13:55.000Z","dependencies_parsed_at":"2024-04-20T05:34:08.358Z","dependency_job_id":"01d63420-f171-4615-8c24-1ab595ae7791","html_url":"https://github.com/videojs/aes-decrypter","commit_stats":{"total_commits":41,"total_committers":13,"mean_commits":"3.1538461538461537","dds":0.7317073170731707,"last_synced_commit":"6f0cbd92c65b28e1ec7b54a605cb1c2c270dd512"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Faes-decrypter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Faes-decrypter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Faes-decrypter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Faes-decrypter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/videojs","download_url":"https://codeload.github.com/videojs/aes-decrypter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248550634,"owners_count":21122933,"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-08-01T20:00:22.698Z","updated_at":"2025-04-13T11:31:32.201Z","avatar_url":"https://github.com/videojs.png","language":"JavaScript","funding_links":[],"categories":["HarmonyOS","JavaScript","DRM, Security \u0026 Content Protection"],"sub_categories":["Windows Manager","Encryption Tools for Streaming"],"readme":"# aes-decrypter\n\n[![Build Status](https://travis-ci.org/videojs/aes-decrypter.svg?branch=master)](https://travis-ci.org/videojs/aes-decrypter)\n[![Greenkeeper badge](https://badges.greenkeeper.io/videojs/aes-decrypter.svg)](https://greenkeeper.io/)\n[![Slack Status](http://slack.videojs.com/badge.svg)](http://slack.videojs.com)\n\n[![NPM](https://nodei.co/npm/aes-decrypter.png?downloads=true\u0026downloadRank=true)](https://nodei.co/npm/aes-decrypter/)\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [License](#license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n## Installation\n\n```sh\nnpm install --save aes-decrypter\n```\n\nAlso available to install globally:\n\n```sh\nnpm install --global aes-decrypter\n```\n\nThe npm installation is preferred, but Bower works, too.\n\n```sh\nbower install  --save aes-decrypter\n```\n\n## Usage\n\nTo include decrypter on your website or npm application, use any of the following methods.\n```js\nvar Decrypter = require('aes-decrypter').Decrypter;\nvar fs = require('fs');\nvar keyContent = fs.readFileSync('something.key');\nvar encryptedBytes = fs.readFileSync('somithing.txt');\n\n// keyContent is a string of the aes-keys content\nvar keyContent = fs.readFileSync(keyFile);\n\nvar view = new DataView(keyContent.buffer);\nvar key.bytes = new Uint32Array([\n  view.getUint32(0),\n  view.getUint32(4),\n  view.getUint32(8),\n  view.getUint32(12)\n]);\n\nkey.iv = new Uint32Array([\n  0, 0, 0, 0\n]);\n\nvar d = new Decrypter(\n  encryptedBytes,\n  key.bytes,\n  key.iv,\n  function(err, decryptedBytes) {\n    // err always null\n});\n```\n\n## [License](LICENSE)\n\nApache-2.0. Copyright (c) Brightcove, Inc.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvideojs%2Faes-decrypter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvideojs%2Faes-decrypter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvideojs%2Faes-decrypter/lists"}