Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aes-kw

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aes-kw

AES-KW === [![Build Status](https://travis-ci.org/calvinmetcalf/aes-kw.svg?branch=master)](https://travis-ci.org/calvinmetcalf/aes-kw) ``` npm install --save aes-kw ```

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

AES-KW

Build Status

npm install --save aes-kw

Implementation of AES-KW algorithm as per RFC 3394.

var kw = require('aes-kw');

var encrypted = kw.encrypt(key, keyMaterial);
var decrypted = kw.decrypt(key, encrypted);
assert(keyMaterial === decrypted);

The encryption key, the key material to encrypt and the encrypted data must all be buffers. The key must be 16, 24, or 32 bytes long and the keyMaterial and encrypted data must be a multiple of 8 bytes.

FAQs

Package last updated on 07 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc