Git Product home page Git Product logo

hashes-node's Introduction

hashes-node

Hashes utils for node.js based on RustCrypto and napi-rs.

Installing

npm i @jthinking/hashes-node

Usage

// import hashes-node
import { md5, blake3, sm3 } = require('@jthinking/hashes-node')

// convert data to Buffer
const buf = Buffer.from('123', 'UTF-8')

// md5 hex
const md5Hex = md5(buf)

// blake3 hex
const blake3Hex = blake3(buf)

// sm3 hex
const sm3Hex = sm3(buf)

// other algorithms
// ...

Supported Algorithms

  • md2
  • md4
  • md5
  • sha1
  • sha256 (sha2_256)
  • sha512 (sha2_512)
  • sha3_256
  • sha3_512
  • sm3
  • belt_hash
  • blake2s256
  • blake2b512
  • blake3
  • fsb512
  • fsb256
  • gost94
  • groestl256
  • groestl512
  • ripemd128
  • ripemd160
  • ripemd256
  • ripemd320
  • shabal192
  • shabal224
  • shabal256
  • shabal384
  • shabal512
  • streebog256
  • streebog512
  • tiger
  • tiger2
  • whirlpool

Supported Platforms

  • Windows x64
  • Windows arm64
  • macOS x64
  • macOS arm64
  • Linux x64
  • Linux arm64

hashes-node's People

Contributors

jiabochao avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.