getPass is an R package for reading user input with masking, i.e., the input is not displayed as it is typed. This is obviously ideal for entering passwords. There is also a secure password hashing function included; see the package vignette for more information.
Currently, RStudio, the command line (any OS), and platforms where the tcltk package is available are supported. We believe this hits just about everything, but for unsupported platforms, non-masked reading (with a warning) is optionally available. See the package vignette for more information. You can view the vignette by entering:
into your R session.
You can install the stable version from CRAN using the usual
The development version is maintained on GitHub, and can easily be installed by any of the packages that offer installations from GitHub:
### Pick your preference devtools::install_github("wrathematics/getPass") ghit::install_github("wrathematics/getPass") remotes::install_github("wrathematics/getPass")
The function has several options available. See
?getPass for more information.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.