1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-29 06:37:40 +00:00

The big Anavrins security update (round 1)

This commit is contained in:
kepler155c@gmail.com
2019-06-27 21:08:46 -04:00
parent 97a442e999
commit bcd33af599
17 changed files with 2308 additions and 204 deletions

View File

@@ -1,7 +1,6 @@
local Ansi = require('ansi')
local Config = require('config')
local Security = require('security')
local SHA1 = require('sha1')
local SHA2 = require('crypto.sha2')
local UI = require('ui')
local colors = _G.colors
@@ -108,7 +107,7 @@ end
function page.wizard.pages.password:validate()
if #self.newPass.value > 0 then
Security.updatePassword(SHA1.sha1(self.newPass.value))
Security.updatePassword(SHA2.digest(self.newPass.value):toHex())
end
--[[
if #self.group.value > 0 then