mirror of
https://github.com/kepler155c/opus
synced 2024-12-28 01:20:27 +00:00
13 lines
292 B
Lua
13 lines
292 B
Lua
_G.requireInjector(_ENV)
|
|
|
|
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
|