10 lines
249 B
Lua
10 lines
249 B
Lua
|
require "modules/lib/sha256"
|
||
|
pass = io.read()
|
||
|
salt = ""
|
||
|
math.randomseed(os.time())
|
||
|
for i = 1, 16 do
|
||
|
salt = salt .. string.char(math.random(32,127))
|
||
|
end
|
||
|
print("_G.PASS_HASH = \""..sha.sha256(pass..salt).."\"")
|
||
|
print("_G.PASS_SALT = \""..salt.."\"")
|