* Initial split of util & util-crypto * Add initial XXHash version * Blake2s wit tests & documentation * Add sha512 (from NaCl) * Add randomBytes (from NaCl) * Flow fixes * Update documentation * Update latest @polkadot/dev
22 lines
437 B
Markdown
22 lines
437 B
Markdown
# sha512
|
|
|
|
Implements Sha-512 hashing functions for a variety of input and outputs
|
|
|
|
- [sha512AsU8a](#sha512asu8a) Creates sha-512 hash of the input.
|
|
|
|
## sha512AsU8a
|
|
|
|
Creates sha-512 hash of the input.
|
|
|
|
```js
|
|
sha512AsU8a (data: Uint8Array): Uint8Array
|
|
```
|
|
|
|
|
|
Returns a sha-512 `Uint8Array` from the supplied data.
|
|
|
|
```js
|
|
import { sha512AsU8a } from '@polkadot/util-crypto';
|
|
|
|
sha512AsU8a(Uint8Array.from([...])) // => Uint8Array([...])
|
|
``` |