# raxor

> A seekable (random-access) XSALSA20 xor stream

Latest version **1.0.0** (published 2020-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install raxor
pnpm add raxor
yarn add raxor
bun add raxor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-11-27 |
| First published | 2020-11-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/raxor
- Repository: https://github.com/mafintosh/raxor
- Issues: https://github.com/mafintosh/raxor/issues
- npm.io page: https://npm.io/package/raxor

## Dependencies (3)

- [uint64be](https://npm.io/package/uint64be.md) ^3.0.0
- [uint64le](https://npm.io/package/uint64le.md) ^1.0.0
- [sodium-native](https://npm.io/package/sodium-native.md) ^3.2.0

## Recent versions

- 1.0.0 (latest) — 2020-11-27
- 0.0.0 — 2020-11-27

## README

# RAXOR

A seekable (random-access) XSALSA20 xor stream.

```
npm install raxor
```

## Usage

``` js
const RAXOR = require('raxor')

// nonce and key should be buffers of the ... nonce and key
const r = new RAXOR(nonce, key)

r.seek(10000) // seek to byte offset 10k
r.update(out, input) // xor the input buffer as if it was as this offset

r.final() // destroy the instance
```

## License

MIT

---
_Source: https://npm.io/package/raxor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
