Skip to content

Instantly share code, notes, and snippets.

@reflechant
Created January 13, 2016 20:31
Show Gist options
  • Save reflechant/faefe1c946b2c9cb9b05 to your computer and use it in GitHub Desktop.
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)
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