1
0
mirror of https://github.com/kepler155c/opus synced 2024-11-14 04:34:49 +00:00
opus/apps/password.lua
kepler155c@gmail.com 4cbb2b2257 security cleanup
2017-05-13 21:05:05 -04:00

11 lines
259 B
Lua

require = requireInjector(getfenv(1))
local SHA1 = require('sha1')
local Terminal = require('terminal')
local password = Terminal.readPassword('Enter new password: ')
if password then
os.updatePassword(SHA1.sha1(password))
print('Password updated')
end