Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/reklatsmasters/vuze-spoof-id
- Owner: reklatsmasters
- License: mit
- Created: 2016-02-22T06:42:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-02-22T07:09:28.000Z (over 8 years ago)
- Last Synced: 2024-09-15T22:07:56.116Z (about 2 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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