@li0ard/kuznyechik
Kuznyechik cipher implementation in pure TypeScript
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.9%) to scientific vocabulary
Repository
Kuznyechik cipher implementation in pure TypeScript
Basic Info
- Host: GitHub
- Owner: li0ard
- License: mit
- Language: TypeScript
- Default Branch: main
- Homepage: https://li0ard.is-cool.dev/kuznyechik
- Size: 26.4 KB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 4
Metadata Files
README.md
@li0ard/kuznyechik
Kuznyechik cipher implementation in pure TypeScript
docs
[!WARNING] This library is currently in alpha stage: the lib is not very stable yet, and there may be a lot of bugs feel free to try it out, though, any feedback is appreciated!
Installation
```bash
from NPM
npm i @li0ard/kuznyechik
from JSR
bunx jsr i @li0ard/kuznyechik ```
Supported modes
- [x] Electronic Codebook (ECB)
- [x] Cipher Block Chaining (CBC)
- [x] Cipher Feedback (CFB)
- [x] Counter (CTR)
- [x] Output Feedback (OFB)
- [x] MAC (CMAC/OMAC)
- [x] Counter with Advance Cryptographic Prolongation of Key Material (CTR-ACPKM)
- [x] MAC with Advance Cryptographic Prolongation of Key Material (OMAC-ACPKM)
- [x] Multilinear Galois Mode (MGM)
Features
- Provides simple and modern API
- Most of the APIs are strictly typed
- Fully complies with GOST R 34.12-2015 (RFC 7801) and GOST R 34.13-2015 (in Russian) standarts
- Supports Bun, Node.js, Deno, Browsers
Examples
ECB mode
```ts import { decryptECB, encryptECB } from "@li0ard/kuznyechik";
const key = Buffer.from("8899AABBCCDDEEFF0011223344556677FEDCBA98765432100123456789ABCDEF", "hex") const plaintext = Buffer.from("1122334455667700ffeeddccbbaa9988", "hex") const encrypted = encryptECB(key, plaintext) console.log(encrypted) // Uint8Array [ ... ]
const decrypted = decryptECB(key, encrypted) console.log(decrypted) // Uint8Array [ ... ] ```
CTR-ACPKM mode
```ts import { decryptCTRACPKM, encryptCTRACPKM } from "@li0ard/kuznyechik"
const key = Buffer.from("8899AABBCCDDEEFF0011223344556677FEDCBA98765432100123456789ABCDEF", "hex") const iv = Buffer.from("1234567890ABCEF0", "hex") const plaintext = Buffer.from("1122334455667700FFEEDDCCBBAA998800112233445566778899AABBCCEEFF0A112233445566778899AABBCCEEFF0A002233445566778899AABBCCEEFF0A001133445566778899AABBCCEEFF0A001122445566778899AABBCCEEFF0A001122335566778899AABBCCEEFF0A0011223344", "hex")
const encrypted = encryptCTR_ACPKM(key, plaintext, iv) console.log(encrypted) // Uint8Array [...]
const decrypted = decryptCTR_ACPKM(key, encrypted, iv) console.log(decrypted) // Uint8Array [...] ```
Owner
- Name: Artem Petrenko
- Login: li0ard
- Kind: user
- Location: Amsterdam
- Website: li0ard.github.io
- Repositories: 4
- Profile: https://github.com/li0ard
- CEO at @nextlng; Web admin at @tosvasq
Citation (CITATION.cff)
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!
cff-version: 1.2.0
title: '@li0ard/kuznyechik'
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Nikolai
family-names: Konovalov
email: li0ard@li0ard.rest
affiliation: TheInfinityWay
orcid: 'https://orcid.org/0009-0008-6084-7154'
repository-code: 'https://github.com/li0ard/kuznyechik'
abstract: Kuznyechik cipher implementation in pure TypeScript
keywords:
- gost
- crypto
- kuznyechik
- streebog
license: MIT
GitHub Events
Total
- Release event: 4
- Push event: 1
- Create event: 3
Last Year
- Release event: 4
- Push event: 1
- Create event: 3
Committers
Last synced: 8 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Lizard | l****d@p****e | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- npm 37 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
- Total maintainers: 1
npmjs.org: @li0ard/kuznyechik
Kuznyechik cipher implementation in pure TypeScript
- Homepage: https://github.com/li0ard/kuznyechik#readme
- License: MIT
-
Latest release: 0.1.3
published 7 months ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v4 composite
- actions/configure-pages v3 composite
- actions/deploy-pages v4 composite
- actions/upload-pages-artifact v3 composite
- oven-sh/setup-bun v2 composite
- actions/checkout v4 composite
- oven-sh/setup-bun v2 composite
- actions/checkout v4 composite
- oven-sh/setup-bun v2 composite
- actions/checkout v4 composite
- oven-sh/setup-bun v2 composite
- @types/bun latest development
- typedoc ^0.28.7 development
- @li0ard/gost3413 ^0.1.4