aes-decrypter

WebJar for aes-decrypter

License

License

Apache-2.0
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

aes-decrypter
Last Version

Last Version

3.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

aes-decrypter
WebJar for aes-decrypter
Project URL

Project URL

https://www.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.npm/aes-decrypter/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>aes-decrypter</artifactId>
    <version>3.1.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/aes-decrypter/
implementation 'org.webjars.npm:aes-decrypter:3.1.2'
// https://jarcasting.com/artifacts/org.webjars.npm/aes-decrypter/
implementation ("org.webjars.npm:aes-decrypter:3.1.2")
'org.webjars.npm:aes-decrypter:jar:3.1.2'
<dependency org="org.webjars.npm" name="aes-decrypter" rev="3.1.2">
  <artifact name="aes-decrypter" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='aes-decrypter', version='3.1.2')
)
libraryDependencies += "org.webjars.npm" % "aes-decrypter" % "3.1.2"
[org.webjars.npm/aes-decrypter "3.1.2"]

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.npm : babel__runtime jar [7.12.5,8)
org.webjars.npm : videojs__vhs-utils jar [3.0.0,4)
org.webjars.npm : global jar [4.4.0,5)
org.webjars.npm : pkcs7 jar [1.0.4,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.npm

Video.js

Web Video Framework

Versions

Version
3.1.2
3.1.0
3.0.2
3.0.1
3.0.0