siphash24

WebJar for siphash24

Лицензия

Лицензия

MIT
Категории

Категории

H2 Данные Базы данных
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

siphash24
Последняя версия

Последняя версия

1.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

siphash24
WebJar for siphash24
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/mafintosh/siphash24

Скачать siphash24

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/siphash24/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>siphash24</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/siphash24/
implementation 'org.webjars.npm:siphash24:1.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/siphash24/
implementation ("org.webjars.npm:siphash24:1.1.1")
'org.webjars.npm:siphash24:jar:1.1.1'
<dependency org="org.webjars.npm" name="siphash24" rev="1.1.1">
  <artifact name="siphash24" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='siphash24', version='1.1.1')
)
libraryDependencies += "org.webjars.npm" % "siphash24" % "1.1.1"
[org.webjars.npm/siphash24 "1.1.1"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : nanoassert jar [1.0.0,2)

Модули Проекта

Данный проект не имеет модулей.

siphash24

SipHash (2-4) implemented in pure Javascript and WebAssembly.

npm install siphash24

The Javascript fallback is adapted from https://github.com/jedisct1/siphash-js to support Uint8Arrays and the (fast!) WebAssembly implementation is hand written.

When using the WASM implementation this module is almost as fast as the C version (around 10% slower on my laptop).

Usage

var siphash24 = require('siphash24')
var hash = siphash24(Buffer.from('hello world'), Buffer.from('012345678012345678'))

console.log(hash, 'hash of "hello world" as a uint8array')

API

var hash = siphash24(input, key, [hash])

Hash a Uint8Array/buffer using siphash24.

  • key should be a Uint8Array/buffer that is siphash24.KEYBYTES long
  • hash can to be optionally passed as the output buffer and should be siphash24.BYTES long.

Returns the hash as a Uint8Array.

siphash24.WASM_SUPPORTED

Boolean informing you if your runtime supports WASM.

siphash24.WASM_LOADED

Boolean informing you if the WASM implementation has been loaded.

License

MIT

Версии библиотеки

Версия
1.1.1