security start

This commit is contained in:
kepler155c@gmail.com
2017-05-05 07:34:20 -04:00
parent 2e5267896e
commit cc4f8a0afc
5 changed files with 148 additions and 8 deletions

18
apps/password.lua Normal file
View 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)