0.2.0 • Published 7 months ago

gmsm-sm3js v0.2.0

Weekly downloads
115
License
Apache-2.0
Repository
github
Last release
7 months ago

sm3js

SM3JS CI npm version NPM Downloads

sm3js is a pure Javascript implementation of the GM-Standards SM3 hash functions.

If you use sm3 with NodeJs, please use nodejs crypto directly.

const crypto = require('crypto');

function sm3Digest(content) {
  const h = crypto.createHash('sm3');
  return h.update(content).digest('hex');
}

// sm3Digest('abc') === '66c7f0f462eeedd9d1f2d46bdc10e4e24167c4875cf2f7a2297da02b8f4ba8e0'

You can call crypto.getHashes() to check if sm3 is supported or not.

0.2.0

7 months ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago