Created
January 13, 2016 20:31
-
-
Save reflechant/faefe1c946b2c9cb9b05 to your computer and use it in GitHub Desktop.
Command-line strong password generator (the only parameter is password length, default is 8)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
math.randomseed(os.time()) | |
length = arg[1] or 8 | |
for i = 1, length do | |
io.stdout:write( string.char(math.random(33,126)) ) | |
end | |
print() | |
io.read() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment