aes-decrypter

WebJar for aes-decrypter

License

License

Categories

Categories

IDE Development Tools
GroupId

GroupId

org.webjars.bowergithub.videojs
ArtifactId

ArtifactId

aes-decrypter
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

aes-decrypter
WebJar for aes-decrypter
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/videojs/aes-decrypter

Download aes-decrypter

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.videojs/aes-decrypter/ -->
<dependency>
    <groupId>org.webjars.bowergithub.videojs</groupId>
    <artifactId>aes-decrypter</artifactId>
    <version>3.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.videojs/aes-decrypter/
implementation 'org.webjars.bowergithub.videojs:aes-decrypter:3.0.0'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.videojs/aes-decrypter/
implementation ("org.webjars.bowergithub.videojs:aes-decrypter:3.0.0")
'org.webjars.bowergithub.videojs:aes-decrypter:jar:3.0.0'
<dependency org="org.webjars.bowergithub.videojs" name="aes-decrypter" rev="3.0.0">
  <artifact name="aes-decrypter" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.videojs', module='aes-decrypter', version='3.0.0')
)
libraryDependencies += "org.webjars.bowergithub.videojs" % "aes-decrypter" % "3.0.0"
[org.webjars.bowergithub.videojs/aes-decrypter "3.0.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.bowergithub.tj : commander.js jar [2.9.0,3)
org.webjars.bowergithub.raynos : global jar [4.3.2,5)
org.webjars.bowergithub.brightcove : pkcs7 jar [1.0.2,2)

Project Modules

There are no modules declared in this project.

aes-decrypter

Build Status Greenkeeper badge Slack Status

NPM

Installation

npm install --save aes-decrypter

Also available to install globally:

npm install --global aes-decrypter

The npm installation is preferred, but Bower works, too.

bower install  --save aes-decrypter

Usage

To include decrypter on your website or npm application, use any of the following methods.

var Decrypter = require('aes-decrypter').Decrypter;
var fs = require('fs');
var keyContent = fs.readFileSync('something.key');
var encryptedBytes = fs.readFileSync('somithing.txt');

// keyContent is a string of the aes-keys content
var keyContent = fs.readFileSync(keyFile);

var view = new DataView(keyContent.buffer);
var key.bytes = new Uint32Array([
  view.getUint32(0),
  view.getUint32(4),
  view.getUint32(8),
  view.getUint32(12)
]);

key.iv = new Uint32Array([
  0, 0, 0, 0
]);

var d = new Decrypter(
  encryptedBytes,
  key.bytes,
  key.iv,
  function(err, decryptedBytes) {
    // err always null
});

License

Apache-2.0. Copyright (c) Brightcove, Inc.

org.webjars.bowergithub.videojs

Video.js

Web Video Framework

Versions

Version
3.0.0