Posted 10 October 2012 - 06:31 PM
Does anybody knows a form to encrypt that is reliable and secure?
Thanks
Thanks
function checkPass(pass)
local content = ""
if not fs.exists(".passwords") then
return false
end
if not pass then
error("Needs an input!")
end
file = fs.open(".passwords", "r")
content = file.readLine()
while content ~= nil do
if content == pass then
file.close()
return true
end
content = file.readLine()
end
file.close()
return false
end
function makePass(pass)
if not fs.exists(".passwords") then
return false
end
if not pass then
error("Needs an input!")
end
file = fs.open(".passwords", "a")
file.write(pass.."n")
file.close()
return true
end