sane_aes128_cbc
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

A sane AES128 cypto for nodejs

Standard crypto module uses the same openssl library but relays on upper layer where the streaming implementation withholds the last processed block and uses callbacks which might force you to do await and other tricks or just make it unusable for decrypting streaming data such as TCP communication.

This module is based on elementary AES operation from openssl and implements CBC by itself this avoiding and delays in data processing

All you need is openssl development files installed libssl-dev package in ubuntu and a node-gyp with it's dependacines such as the gcc compiler and friends.

Just do sudo apt install libssl-dev; npm install sane_aes128_cbc and you should be all set

Example

see example/sane_cypto.js for example

to run the example from the freshly cloned repo do

npm install
node example/sane_crypto.js 

post npm install if you modify src/sane_aes128_cbc.c, you can do ./node_modules/.bin/node-gyp build && node example/sane_crypto.js to rebuild the module and run the test javascript code

License

This module is LGPLv3 licensed you're free to use and modify it but you have to contribute back the changes you've made :)

Readme

Keywords

Package Sidebar

Install

npm i sane_aes128_cbc

Weekly Downloads

1

Version

1.1.2

License

LGPLv3

Unpacked Size

15.4 kB

Total Files

6

Last publish

Collaborators

  • sdrsdr