mirror of
https://github.com/kepler155c/opus
synced 2025-11-22 18:14:55 +00:00
The big Anavrins security update (round 1)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
local Security = require('security')
|
||||
local SHA1 = require('sha1')
|
||||
local SHA2 = require('crypto.sha2')
|
||||
local Terminal = require('terminal')
|
||||
|
||||
local password = Terminal.readPassword('Enter new password: ')
|
||||
|
||||
if password then
|
||||
Security.updatePassword(SHA1.sha1(password))
|
||||
Security.updatePassword(SHA2.digest(password):toHex())
|
||||
print('Password updated')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user