Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reklatsmasters/vuze-spoof-id

spoof_id generator for vuze
https://github.com/reklatsmasters/vuze-spoof-id

Last synced: 24 days ago
JSON representation

spoof_id generator for vuze

Awesome Lists containing this project

README

        

# vuze-spoof-id

[![travis](https://travis-ci.org/ReklatsMasters/vuze-spoof-id.svg)](https://travis-ci.org/ReklatsMasters/vuze-spoof-id)
[![npm](https://img.shields.io/npm/v/vuze-spoof-id.svg)](https://npmjs.org/package/vuze-spoof-id)
[![license](https://img.shields.io/npm/l/vuze-spoof-id.svg)](https://npmjs.org/package/vuze-spoof-id)
[![downloads](https://img.shields.io/npm/dm/vuze-spoof-id.svg)](https://npmjs.org/package/vuze-spoof-id)
[![Code Climate](https://codeclimate.com/github/ReklatsMasters/vuze-spoof-id/badges/gpa.svg)](https://codeclimate.com/github/ReklatsMasters/vuze-spoof-id)
[![Test Coverage](https://codeclimate.com/github/ReklatsMasters/vuze-spoof-id/badges/coverage.svg)](https://codeclimate.com/github/ReklatsMasters/vuze-spoof-id)

## Example
```js
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