0.5.0-a3 • Published 12 months ago

@logismika/crypto v0.5.0-a3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@logismika/crypto

Implementation of the Kuznechik encryption algorithm according to GOST 34.12 - 2015.

Installation

To install and set up the library, run:

$ npm install @logismika/crypto

Usage

encrypt

const encryptedData = await encrypt("Secret", new Uint8Array([1, 2, 3]));

decrypt

const decryptedData = await decrypt("Secret", encryptedData);

Example

import { decrypt, encrypt } from "@logismika/crypto";

const secretKey = "Secret";
const dataToEncrypt = new Uint8Array([1, 1, 1, 100, 100, 200]);

const encryptedData = await encrypt(secretKey, dataToEncrypt);

const decryptedData = await decrypt(secretKey, encryptedData);
0.3.0

12 months ago

0.5.0-a2

12 months ago

0.4.1

12 months ago

0.5.0-a1

12 months ago

0.4.0

12 months ago

0.3.1

12 months ago

0.5.0-a3

12 months ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago