bash - v0.1.2
    Preparing search index...

    bash - v0.1.2

    @li0ard/bash
    Bash (STB 34.101.77) hash function in pure TypeScript
    docs




    # from NPM
    npm i @li0ard/bash

    # from JSR
    bunx jsr i @li0ard/bash
    • [x] BASH.HASH128 (256 bit)
    • [x] BASH.HASH192 (384 bit)
    • [x] BASH.HASH256 (512 bit)
    • [x] Programmable automatons (bash-prg)
    • Provides simple and modern API
    • Most of the APIs are strictly typed
    • Fully complies with STB 34.101.77-2020 (in Russian) standard
    • Supports Bun, Node.js, Deno, Browsers
    import { Bash } from "@li0ard/bash"

    let hash = new Bash(32)
    hash.update(new TextEncoder().encode("hello world"))
    console.log(hash.digest())

    // -- OR --

    import { bash256 } from "@li0ard/bash"

    console.log(bash256(new TextEncoder().encode("hello world")))