R/pwGenerator.R

Defines functions pwGenerator

pwGenerator=function(pwlength){
  abc<- letters
  ABC<- toupper(letters)
  numerics<- 0:9
  special<- c('!', '?', '$', '%', '&', '/', '=' ,'?')
  basis<- c(abc, ABC, numerics, special)
  pw<- sample(basis, pwlength, replace = TRUE)
  paste(pw, collapse="")
}
fischuu/Luke documentation built on Aug. 30, 2022, 10:07 a.m.