raw_as_char {argon2} | R Documentation |
raw_as_char
Description
Convert the literal bytes of a raw (unsigned char*) to a
string representation. This is different from R's
rawToChar()
. See examples for details.
Usage
raw_as_char(raw, upper = TRUE, spaces = FALSE)
Arguments
raw |
A raw vector. |
upper |
Should hex digits A-F be given in uppercase? |
spaces |
Should the str use spaces? |
Value
A character string.
Examples
## Not run:
library(argon2)
str <- "some text"
raw <- charToRaw(str)
raw
rawToChar(raw)
raw_as_char(raw)
## End(Not run)
[Package argon2 version 0.4-0 Index]