1.1.5 • Published 5 days ago

@encrypted-uri/ciphers v1.1.5

Weekly downloads
-
License
Unlicense
Repository
github
Last release
5 days ago

"He that hath an ear, let him hear what the Spirit saith unto the churches; To him that overcometh will I give to eat of the hidden manna, and will give him a white stone, and in the stone a new name written, which no man knoweth saving he that receiveth it." Apocalypse 2:17

Encrypted URI - ciphers

npm version Npm Total Downloads Npm Monthly Downloads

Include AES algorithms from @noble/ciphers into Encrypted URI (@encrypted-uri/core).

Support for Encrypted URI using @scure and @noble packages.

Run example

Open example app

Installation

npm install @encrypted-uri/core @encrypted-uri/ciphers --save

import { EncryptedURI } from '@encrypted-uri/core';
import '@encrypted-uri/ciphers/aes';
import '@encrypted-uri/ciphers/hashes';

EncryptedURI.encrypt({
   algorithm: 'aes/cbc',
   params: { iv: 'a24567b823f5c7918736194ab5c2e83d' },
   content: 'secret message',
   key: 'secret key'
});
// encrypted:aes/cbc?iv=a24567b823f5c7918736194ab5c2e83d;...<cypher>

EncryptedURI.encrypt({
   algorithm: 'aes/cbc',
   queryString: 'a24567b823f5c7918736194ab5c2e83d',
   content: 'secret message',
   key: 'secret key'
});
// encrypted:aes/cbc?a24567b823f5c7918736194ab5c2e83d;...<cypher>


EncryptedURI.encrypt({
   content: 'secret message',
   key: 'secret key'
});
// default algorithm is aes/cbc from webcrypto
// encrypted:?a24567b823f5c7918736194ab5c2e83d;rtyu...<cypher>
1.1.5

5 days ago

1.1.1

3 months ago

1.1.4

7 days ago

1.1.3

3 months ago

1.1.2

3 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago

0.1.3

4 months ago

0.1.2

4 months ago

0.1.1

4 months ago