1
0
mirror of https://github.com/kepler155c/opus synced 2024-11-05 00:16:16 +00:00
opus/sys/apps/password.lua
2017-09-05 02:09:31 -04:00

13 lines
297 B
Lua

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