Home Manual Reference Source Test Repository

Installation

Installation

Can be managed using jspm or npm.

jspm

jspm install npm:@aureooms/js-hash

npm

npm install @aureooms/js-hash --save

Usage

Usage

The code needs a ES2015+ polyfill to work, for example babel-polyfill.

require( 'babel-polyfill' ) ;
// or
import 'babel-polyfill' ;

Then

const hash = require( '@aureooms/js-hash' ) ;
// or
import * as hash from '@aureooms/js-hash' ;

References

References

Class Summary

Static Public Class Summary
public

Function Summary

Static Public Function Summary
public

md5(bytes: *, n: *, digest: *): *

MD5

public

md5fast(bytes: *, n: *, digest: *): *

MD5 inlined implementation

public

sha1(bytes: *, n: *, digest: *): *

SHA1

public

sha224(bytes: *, n: *, digest: *): *

SHA-224

public

sha256(bytes: *, n: *, digest: *): *

SHA-256

public

sha384(bytes: *, n: *, digest: *): *

SHA-384

public

sha512(bytes: *, n: *, digest: *): *

SHA-512

public

sha512_call(h: *, data: *, o: *)

public

sha512_cycle(state: *, w: *)

public

sha512_finalize(bytes: *, n: *, digest: *, y: *, o: *, right: *, h: *): *

public