argon2 (version 0.2-0)

blake2b: blake2b

Description

A 512-bit blake2b hash implementation.

Usage

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

Run this code
# NOT RUN {
library(argon2)
blake2b("some string")
blake2b("another")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab