mirror of
https://github.com/kepler155c/opus
synced 2024-11-10 18:59:55 +00:00
11 lines
290 B
Lua
11 lines
290 B
Lua
local Security = require('opus.security')
|
|
local SHA = require('opus.crypto.sha2')
|
|
local Terminal = require('opus.terminal')
|
|
|
|
local password = Terminal.readPassword('Enter new password: ')
|
|
|
|
if password then
|
|
Security.updatePassword(SHA.compute(password))
|
|
print('Password updated')
|
|
end
|