Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
li0ard/bashBash (STB 34.101.77) hash function in pure TypeScript
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
100%
Published
2 months ago (0.1.1)
@li0ard/bash
Bash (STB 34.101.77) hash function in pure TypeScript
docs
Installation
# from NPM npm i @li0ard/bash # from JSR bunx jsr i @li0ard/bash
Supported modes
- BASH.HASH128 (256 bit)
- BASH.HASH192 (384 bit)
- BASH.HASH256 (512 bit)
- Programmable automatons (bash-prg)
Features
- 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
Examples
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")))
Built and signed on
GitHub Actions
Add Package
deno add jsr:@li0ard/bash
Import symbol
import * as bash from "@li0ard/bash";
Import directly with a jsr specifier
import * as bash from "jsr:@li0ard/bash";
Add Package
pnpm i jsr:@li0ard/bash
pnpm dlx jsr add @li0ard/bash
Import symbol
import * as bash from "@li0ard/bash";
Add Package
yarn add jsr:@li0ard/bash
yarn dlx jsr add @li0ard/bash
Import symbol
import * as bash from "@li0ard/bash";
Add Package
vlt install jsr:@li0ard/bash
Import symbol
import * as bash from "@li0ard/bash";
Add Package
npx jsr add @li0ard/bash
Import symbol
import * as bash from "@li0ard/bash";
Add Package
bunx jsr add @li0ard/bash
Import symbol
import * as bash from "@li0ard/bash";