1.0.6 • Published 7 years ago

uop-hash v1.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

uop-hash

Calculates the hash used by UOP files.

Since just 53-bits is the maximum supported precision by javascript with integers, this function returns an array of 32-bit unsigned integers.

Installation

npm install uop-hash or yarn add uop-hash

Example

var hash = require('uop-hash');

var myHashedFilename = hash('beepboop'); // returns an uint32_t[2] (Number[2])

Notes

The code listed in this was adapted from ServUO's UltimaSDK source in FileIndex.cs:HashFileName function

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago