Documentation Index
Fetch the complete documentation index at: https://mintlify.com/rstudio/rskey/llms.txt
Use this file to discover all available pages before exploring further.
rskey is a drop-in replacement for Package Manager’s built-in rspm encrypt command. It generates the same key format and produces compatible encrypted values, so you can provision secrets in automated pipelines and container images without a Package Manager installation or license on the machine where you run it.
Generate a key
Generate the key file
Write a new 512-byte hex-encoded key directly to the Package Manager key path:Restrict the file so only the Package Manager process can read it:
Encrypt a configuration value
Run To encrypt multiple values in a script, pass them as newline-separated input on stdin:
rskey encrypt interactively. It prompts you to type the value twice without echoing it to the terminal:FIPS mode
Package Manager 2024.04.0 and later supports AES-256-GCM encryption, an Approved Security Function under FIPS 140-3. To use it, pass--mode=fips when encrypting:
rskey decrypt does not require --mode=fips. The algorithm is encoded in the ciphertext version byte and detected automatically.