blake2b: blake2b

Description Usage Arguments Value References Examples

View source: R/blake2b.r

Description

A 512-bit blake2b hash implementation.

Usage

1
blake2b(x, key = NULL)

Arguments

x

Input to be hashed. Can be a single string or a raw vector.

key

An optional key. Should be NULL (for no key), a single string, or a raw vector.

Value

The hash of the string as a raw vector.

References

Aumasson, J.P., Neves, S., Wilcox-O'Hearn, Z. and Winnerlein, C., 2013, June. BLAKE2: simpler, smaller, fast as MD5. In International Conference on Applied Cryptography and Network Security (pp. 119-135). Springer Berlin Heidelberg.

Examples

1
2
3
4
5
6
## Not run: 
library(argon2)
blake2b("some string")
blake2b("another")

## End(Not run)

argon2 documentation built on Oct. 31, 2021, 1:06 a.m.