@li0ard/streebog
Streebog hash function in pure TypeScript
docs
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!
# from NPM
npm i @li0ard/streebog
# from JSR
bunx jsr i @li0ard/streebog
KDF_GOSTR3411_2012_256
and KDF_TREE_GOSTR3411_2012_256
import { streebog256 } from "@li0ard/streebog"
console.log(streebog256(new TextEncoder().encode("hello world")))
// OR
import { Streebog256 } from "@li0ard/streebog"
const hash = new Streebog256()
hash.update(new TextEncoder().encode("hello world"))
console.log(hash.digest())
import { streebog512 } from "@li0ard/streebog"
console.log(streebog512(new TextEncoder().encode("hello world")))
// OR
import { Streebog512 } from "@li0ard/streebog"
const hash = new Streebog512()
hash.update(new TextEncoder().encode("hello world"))
console.log(hash.digest())