Use obfuscate("value")
to generate a call to obfuscated()
, which will
unobfuscate the value at the last possible moment. Obfuscated values only
work in limited locations:
The secret
argument to oauth_client()
Elements of the data
argument to req_body_form()
, req_body_json()
,
and req_body_multipart()
.
Working together this pair of functions provides a way to obfuscate mildly
confidential information, like OAuth client secrets. The secret can not be
revealed from your inspecting source code, but a skilled R programmer could
figure it out with some effort. The main goal is to protect against scraping;
there's no way for an automated tool to grab your obfuscated secrets.