View source: R/calculation_definitions.R
simple_decode_base64 | R Documentation |
Simple decoder of text strings, will output a text string. Uses sodium library and base64_enc/dec from jsonlite. Has some defaults, but will also take command-line arguments or read from environment. Companion function to simple_encode
simple_decode_base64(msg, key = NULL, nonce = NULL)
msg |
the text to decode |
key |
the cipher, which can be set manually, otherwise will read from env |
nonce |
a non-secret unique data value used to randomize the cipher |
- the encrypted text
returns NA for elements of msg which are NA, or "" empty string. note that simple_encode will ENCRYPT an empty string "".
returns NULL if failure to decode e.g. invalid base64 decode
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.