npm

Join us for the "JavaScript Supply Chain Security" tech talk, presented by VP of Security, Adam Baldwin. 6/20 at 10am PT.Sign up here »

vuze-spoof-id

1.0.0 • Public • Published

vuze-spoof-id

travis npm license downloads Code Climate Test Coverage

Example

const spoof = require('vuze-spoof-id')
 
var key = spoof.key()
var id = spoof.id('1.2.3.4', key) // id is number

API

key(): Buffer

Randomly generated key spoof key. Generated at the start dht agent.

id(ip: String, spoof_key: Buffer): Number

Return id for ipv4 address ip.

License

MIT, 2016 (c) Dmitry Tsvettsikh

install

npm i vuze-spoof-id

Downloadsweekly downloads

1

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability