public string Generate(int passwordLength) { var generator = new RandomStringGenerator(); return(generator.Generate(passwordLength, ALLOWED_CHARACTERS)); }