@domain.js/aes
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

@domain.js/aes

aes encode and decode functions for domain.js internal

Build status codecov

Installation

npm i @domain.js/aes --save

Usage

const { encrypt, decrypt } = require('@domain.js/aes').main();

const key = "123";
const msg = aes.encrypt("hello world", key);
// msg is a string content may be 'U2FsdGVkX1/fmnlF0cEV4evuMptXZ/1bZMcq3lp0l7A='
// Notice: AES encryption results may be inconsistent every time

const txt = aes.decrypt(msg, key);
// txt is 'hello world'

Readme

Keywords

Package Sidebar

Install

npm i @domain.js/aes

Weekly Downloads

1

Version

0.3.1

License

MIT

Unpacked Size

2.46 kB

Total Files

6

Last publish

Collaborators

  • stonephp