0.0.2 • Published 12 months ago

@kcuf/md5 v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@kcuf/md5

An MD5 encrypting util.

APIs

import md5, {
  md5String,
  md5Uint8Array,
  md5Buffer,
  md5Blob,
  md5Json
} from '@kcuf/md5';
APIDescription
md5(input: unknown): stringinput can be string, Buffer, Uint8Array and anything else (which may not be hashed correctly though).
md5String(input: string): stringinput is string
md5Buffer(input: Buffer \| ArrayBuffer): stringinput is Buffer like object
md5Blob(blob: Blob): Promise<string>input is a Blob object, note that it is async
md5Json(o: unknown): stringGenerate MD5 on plain object, the JSON is stringify-ed in ordered manner, so the composing order is regardless
md5Unit8Array(uint8Array: Uint8Array): stringThe underneath md5 function
0.0.2

12 months ago

0.0.1

1 year ago