目录

getPass

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:

vignette("getPass", package="getPass")

into your R session.

Installation

You can install the stable version from CRAN using the usual install.packages():

install.packages("getPass")

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")

Usage

getPass::getPass()

or

library(getPass)
getPass()

The function has several options available. See ?getPass for more information.

关于

用于安全地从终端读取密码,不显示输入内容

451.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号