UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.

10 lines (9 loc) 512 B
/** * Pure-JS hashing utilities — no external dependencies, works in browser and Node/SSR. */ /** Returns the MD5 hash of the given bytes as a lowercase hex string. */ export declare function md5Hex(input: Uint8Array): string; /** Returns the MD5 hash of the given bytes as a raw byte array. */ export declare function md5AsBytes(input: Uint8Array): number[]; /** Returns the SHA-256 hash of the given buffer as a base64 string. */ export declare function sha256Base64(buffer: ArrayBuffer): Promise<string>;