gluon-core: convert site seed to lowercase
While we use the hexadecimal representation as a hash input for simplicity, it should not be interpreted as case-sensitive.
This commit is contained in:
parent
0ceb25e3e7
commit
ae593d8439
@ -131,7 +131,7 @@ function site_seed_bytes(key, length)
|
|||||||
-- cryptographic strength
|
-- cryptographic strength
|
||||||
while ret:len() < 2*length do
|
while ret:len() < 2*length do
|
||||||
i = i + 1
|
i = i + 1
|
||||||
v = hash.md5(v .. key .. site.site_seed .. i)
|
v = hash.md5(v .. key .. site.site_seed:lower() .. i)
|
||||||
ret = ret .. v
|
ret = ret .. v
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user