Skip to content

About

TypeScript implementation of the "Kuznechik" (GOST R 34.12-2015) symmetric block cipher. For Donations: bc1qy3f7tqvtaylranmeu5xdneze8rkm9w2sknx7zm

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kuznechik TS SDK

TypeScript implementation of the Kuznechik (GOST R 34.12-2015) symmetric block cipher.

Features

  • Strongly typed implementation with Uint8Array.
  • Full support for 256-bit keys and 128-bit blocks.
  • Verified against standard GOST R 34.12-2015 test vectors.
  • Easy integration with modern TypeScript projects.

Installation

Copy kuznechik.ts to your project.

Usage

import { Kuznechik } from "./kuznechik";

const key = new Uint8Array([
  /* 32 bytes */
]);
const cipher = new Kuznechik(key);

const plaintext = new Uint8Array([
  /* 16 bytes */
]);
const ciphertext = cipher.encrypt(plaintext);
const decrypted = cipher.decrypt(ciphertext);

Testing

Run tests using ts-node:

npm test

License

MIT

About

TypeScript implementation of the "Kuznechik" (GOST R 34.12-2015) symmetric block cipher. For Donations: bc1qy3f7tqvtaylranmeu5xdneze8rkm9w2sknx7zm

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages