JSPM

crypto-aes-ecb

1.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 42
  • Score
    100M100P100Q72842F
  • License Apache-2.0

A Encrypt/Decrypt AES ECB library for NodeJS.

Package Exports

  • crypto-aes-ecb
  • crypto-aes-ecb/lib/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (crypto-aes-ecb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-crypto-ecb

npm package Build Status Downloads Issues Code Coverage Commitizen Friendly Semantic Release

A Encrypt/Decrypt AES ECB library for NodeJS.

Install

npm install crypto-aes-ecb

Usage AES ECB 256

import { Aes256EcbEncrypt, Aes256EcbDecrypt } from 'crypto-aes-ecb';

const message = 'Hello';
const key = 'secretkey16bytessecretkey16bytes'
const encryptMessage = Aes256EcbEncrypt(message, key);
const result = Aes256EcbDecrypt(encryptMessage, key);
console.log(result) // Hello

Usage AES ECB 192

import { Aes192EcbEncrypt, Aes192EcbDecrypt } from 'crypto-aes-ecb';

const message = 'Hello';
const key = 'secretkeysecretkey24byte'
const encryptMessage = Aes192EcbEncrypt(message, key);
const result = Aes192EcbDecrypt(encryptMessage, key);
console.log(result) // Hello

Usage AES ECB 128

import { Aes128EcbEncrypt, Aes128EcbDecrypt } from 'crypto-aes-ecb';

const message = 'Hello';
const key = 'secretkey16bytes'
const encryptMessage = Aes128EcbEncrypt(message, key);
const result = Aes128EcbDecrypt(encryptMessage, key);
console.log(result) // Hello