blake2b: blake2b

View source: R/blake2b.r

blake2bR Documentation

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

## Not run: 
library(argon2)
blake2b("some string")
blake2b("another")

## End(Not run)


wrathematics/argon2 documentation built on March 9, 2023, 10:08 p.m.