security start
This commit is contained in:
18
apps/password.lua
Normal file
18
apps/password.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
require = requireInjector(getfenv(1))
|
||||
local Config = require('config')
|
||||
local SHA1 = require('sha1')
|
||||
|
||||
local config = {
|
||||
enable = false,
|
||||
pocketId = 10,
|
||||
distance = 8,
|
||||
}
|
||||
|
||||
Config.load('os', config)
|
||||
|
||||
print('Enter new password')
|
||||
local password = read()
|
||||
|
||||
config.password = SHA1.sha1(password)
|
||||
|
||||
Config.update('os', config)
|
||||
Reference in New Issue
Block a user