Skip to content

li0ard/strumok

Repository files navigation

@li0ard/strumok
Strumok (DSTU 8845:2019) cipher implementation in pure TypeScript
docs




Installation

# from NPM
npm i @li0ard/strumok

# from JSR
bunx jsr i @li0ard/strumok

Supported modes

  • Strumok-256
  • Strumok-512

Features

  • Provides simple and modern API
  • Most of the APIs are strictly typed
  • Fully complies with DSTU 8845:2019 standard
  • Supports Bun, Node.js, Deno, Browsers

Examples

import { Strumok } from "@li0ard/kupyna"

const key = new Uint8Array(64).fill(0xaa)
const iv = new Uint8Array(32).fill(0xbb)
const data = new Uint8Array(256).fill(0xcc);

const cipher = new Strumok(key, iv);
console.log(cipher.crypt(data)) // Uint8Array [...]

About

Strumok (DSTU 8845:2019) cipher implementation in pure TypeScript

Topics

Resources

License

Stars

Watchers

Forks