OC-PsychOS/exec/passwd.lua

5 lines
131 B
Lua
Raw Normal View History

local tA = {...}
local s=os.gensalt(16)
io.write("New password for "..tA[1]..": ")
os.setuser(tA[1],sha.sha256(io.read("*")..s),s)