inputPwd: Input password key

Description Usage Arguments Value Author(s) See Also Examples

Description

Input a password phrase. It returns nothing unless you assign the output to a variable.

Usage

1
2
3
4
5
inputPwd(prompt = NULL, caption = NULL, encrypt = TRUE,
  gui = c("Rstudioapi", "Gwidgets"), gen_pem = TRUE, ...)

input_pwd(prompt = NULL, caption = NULL, encrypt = TRUE,
  gui = c("Rstudioapi", "Gwidgets"), gen_pem = TRUE, ...)

Arguments

prompt

character, the prompt label of the GUI window.

caption

character, the caption of the GUI window.

encrypt

logical, if the password will be encrypted (a raw vector). Default TRUE.

gui

'Rstudioapi', or 'Gwidgets', default 'Rstudioapi'. If 'Rstudioapi' and Rstudio version >= 1.1.419, then call askForPassword, otherwise use a GUI wizard with gWidget2.

gen_pem

logical, indicating whether generate a acckey.pem file to store the cypher key of the password in under tempdir(). Default TRUE.

...

other arguments,

  • force: set force = TRUE to overwrite the .pem file forcefully

  • pem: assign a name to generate the .pem file in dir. Default 'acckey'.

Value

invisible

Author(s)

Yiying Wang, wangy@aetna.com

See Also

askForPassword askForSecret You can also use getPwd directly

Examples

1
2
3
4
## Not run: 
input_pwd(prompt="Input the db key", caption="Password")

## End(Not run)

madlogos/aseskit documentation built on June 26, 2019, 12:17 a.m.