Neutered Paranoid Meerkat

    uop-hash

    1.0.6 • Public • Published

    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

    Install

    npm i uop-hash

    DownloadsWeekly Downloads

    4

    Version

    1.0.6

    License

    MIT

    Last publish

    Collaborators

    • kevinhikaruevans